使用pip3的时候,出现下面的错误,以安装pydot为例:wzc@wzc-Lenovo-Product:~$ pip3 install pydot
Downloading/unpacking pydot
Downloading pydot-1.0.2.tar.gz
Running setup.py (path:/tmp/pip_build_wzc/pydot/setup.py) egg_info for package pydot
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_wzc/pydot/setup.py", line 5
except ImportError, excp:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_wzc/pydot/setup.py", line 5
except ImportError, excp:
^
SyntaxError: invalid syntax
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_wzc/pydot
Storing debug log for failure in /home/wzc/.pip/pip.log
使用conda的时候,应该是找不到地址的原因,我已经更换为国内的源,但是conda在寻找地址的时候,会自动的在地址的后面添加/linux这个东西,请问该怎么做?Fetching package metadata: .......
Using Anaconda Cloud api site https://api.anaconda.org
Error: Could not find URL: http://pypi.sdutlinux.org/simple/linux-64/