我申请了aws EC2 的免费实例,系统是Ubuntu,按教程安装步骤如下:
sudo -s //root权限
apt-get update //更新包
apt-get install python-pip //一个管理和安装python包的工具,中间yes yes yes
在输入pip install shadowsocks 后,提示“Command 'pip' not found, but can be installed with:apt install python3-pip
”
我根据提示输入apt install python3-pip。
之后再根据教程,
依次进行 pip install shadowsocks、vi /etc/shadowsocks.json。按照教程,之后启动服务就可以了。
但每次运行ssserver -c /etc/shadowsocks.json -d start命令,就返回以下内容,输入sslocal --version,也是类似的反馈。请问是什么情况啊?我应该如何修改?
Traceback (most recent call last):
File "/usr/local/bin/ssserver", line 5, in <module>
from shadowsocks.server import main
File "/usr/local/lib/python3.10/dist-packages/shadowsocks/server.py", line 27, in <module>
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, \
File "/usr/local/lib/python3.10/dist-packages/shadowsocks/udprelay.py", line 71, in <module>
from shadowsocks import encrypt, eventloop, lru_cache, common, shell
File "/usr/local/lib/python3.10/dist-packages/shadowsocks/lru_cache.py", line 34, in <module>
class LRUCache(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'
sudo -s //root权限
apt-get update //更新包
apt-get install python-pip //一个管理和安装python包的工具,中间yes yes yes
在输入pip install shadowsocks 后,提示“Command 'pip' not found, but can be installed with:apt install python3-pip
”
我根据提示输入apt install python3-pip。
之后再根据教程,
依次进行 pip install shadowsocks、vi /etc/shadowsocks.json。按照教程,之后启动服务就可以了。
但每次运行ssserver -c /etc/shadowsocks.json -d start命令,就返回以下内容,输入sslocal --version,也是类似的反馈。请问是什么情况啊?我应该如何修改?
Traceback (most recent call last):
File "/usr/local/bin/ssserver", line 5, in <module>
from shadowsocks.server import main
File "/usr/local/lib/python3.10/dist-packages/shadowsocks/server.py", line 27, in <module>
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, \
File "/usr/local/lib/python3.10/dist-packages/shadowsocks/udprelay.py", line 71, in <module>
from shadowsocks import encrypt, eventloop, lru_cache, common, shell
File "/usr/local/lib/python3.10/dist-packages/shadowsocks/lru_cache.py", line 34, in <module>
class LRUCache(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'