我一直在嘗試幾個小時才能讓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