我一直在尝试几个小时才能让distribute_setup.py在活动的虚拟环境中正确安装。我得到它运行,但我总是得到一个错误。任何帮助,将不胜感激。我目前正在尝试在Ubuntu 12.10中做到这一点。在Linux上从虚拟环境安装distribute_setup.py时出错
谢谢!
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) [email protected]:~$
(DjangoTutorial)是活动的虚拟环境
这里是我得到的,当我尝试建立
[email protected]:~/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
[email protected]:~/Code/Tutorial$
Python3.3安装在/ usr/local/lib目录的依赖
我也尝试重新安装ubuntu和python3.3,它仍然无法正常工作!
您使用的是哪种Linux发行版?大多数提供预制包装。 – Blender
我使用的是Ubuntu 10.10 –
你有足够的磁盘空间来下载tar文件吗?或者将它解压到tmp? – Thorfin