我有一台阿里云ces,系统是centos6.5 里面本身带了python 2.6.6, 后来我在里面有安装了python3.3.6
安装命令如下:
./configure --prefix=/usr/local/
make && make install
之后我安装了一些库,如:paramiko之类,但当我运行程序时出现如下错误:
import paramiko File "", line 1565, in _find_and_load File "", line 1532, in _find_and_load_unlocked File "/usr/local/lib/python3.3/site-packages/paramiko-2.0.1-py3.3.egg/paramiko/__init__.py", line 30, in File "", line 1565, in _find_and_load File "", line 1532, in _find_and_load_unlocked File "/usr/local/lib/python3.3/site-packages/paramiko-2.0.1-py3.3.egg/paramiko/transport.py", line 32, in File "/usr/local/lib/python3.3/site-packages/cryptography-1.4-py3.3-linux-x86_64.egg/cryptography/hazmat/backends/__init__.py", line 7, in import pkg_resources File "/usr/local/lib/python3.3/site-packages/pkg_resources.py", line 45 def _bypass_ensure_directory(name, mode=0777):
请教这个是怎么回事,如何解决?
def _bypass_ensure_directory(name, mode=0777):
建议使用virtualenv
已经解决是easy_install 安装的有问题,重新安装后就好了