AttributeError collections MutableMapping

AttributeError: module ‘collections’ has no attribute ‘MputableMapping’ python版本大于3.10或是2版本都会有这个问题 安装3.9解决

  1. 下载python
wget https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz

pyth

  1. 安装依赖
apt-get install libffi-dev   #其余看make时候报错
  1. 编译
./configure --enable-optimizations --with-ssl
make -j 2
make altinstall
  1. 删除原python版本
sudo apt-get remove --purge python2*
sudo apt-get autoremove --purge python2*

AttributeError: /lib/x86_64-linux-gnu/libcrypto.so.3: undefined symbol: EVP_CIPHER_CTX_cleanup 需要替换方法 vi /usr/local/lib/python3.9/site-packages/shadowsocks/crypto/openssl.py :%s/cleanup/reset:q

Published At