我已经尝试了几个小时来让 Distribute_setup.py 在活动的虚拟环境中正确安装。我让它运行,但我总是得到一个错误。任何帮助,将不胜感激。我目前正在尝试在 Ubuntu 12.10 中执行此操作。
谢谢!
python distribute_setup.py
Extracting in /tmp/tmpvmrkpz
Traceback (most recent call last):
File "distribute_setup.py", line 546, in <module>
sys.exit(main())
File "distribute_setup.py", line 543, in main
return _install(tarball, _build_install_args(options))
File "distribute_setup.py", line 76, in _install
tar = tarfile.open(tarball)
File "/usr/local/lib/python3.3/tarfile.py", line 1571, in open
raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully
(DjangoTutorial) test@ubuntu:~$
(DjangoTutorial) 是活动的虚拟环境
这是我尝试构建依赖项时得到的结果
test@ubuntu:~/Code/Tutorial$ sudo apt-get build-dep python3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: You must put some 'source' URIs in your sources.list
test@ubuntu:~/Code/Tutorial$
Python3.3 安装在 /usr/local/lib
我也试过重新安装 ubuntu 和 python3.3 还是不行!