0
將瓶子包安裝到python時面臨問題2.7
我使用的是Windows 7系統 其中有python 2.7 & 3.4。
'PY' 命令就是Python 2.7 & 'PYTHON' 命令就是Python 3.4
如何在python中安裝瓶子包?
現在如何在Python 2.7
C:> py
import bottle
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named bottle
我安裝使用easy_install的蟒蛇3.4安裝瓶包裝 - U瓶命令。
它的正常工作爲Python 3.4
C:>python
import bottle
我現在面臨的問題是如何在Python安裝瓶包2.7
這是我的Python 3.4目錄的外觀
C:\Python34>dir
Volume in drive C is System
Volume Serial Number is 9CA3-A130
Directory of C:\Python34<br />
12/08/2014 09:49 PM <DIR> .
12/08/2014 09:49 PM <DIR> ..
12/08/2014 09:49 PM 1,024 add2virtualenv.bat
12/08/2014 09:49 PM 83 cd-.bat
12/08/2014 09:49 PM 644 cdproject.bat
12/08/2014 09:49 PM 368 cdsitepackages.bat
12/08/2014 09:49 PM 350 cdvirtualenv.bat
09/28/2014 05:35 PM <DIR> distribution
09/28/2014 01:28 AM <DIR> DLLs
09/28/2014 01:28 AM <DIR> Doc
12/08/2014 09:49 PM 421 folder_delete.bat
09/28/2014 01:28 AM <DIR> include
01/12/2015 01:36 AM <DIR> Lib
09/28/2014 01:28 AM <DIR> libs
05/18/2014 10:48 AM 31,073 LICENSE.txt
12/08/2014 09:49 PM 997 lssitepackages.bat
12/08/2014 09:49 PM 267 lsvirtualenv.bat
12/08/2014 09:49 PM 1,947 mkvirtualenv.bat
02/19/2011 01:40 AM 773,968 msvcr100.dll
05/18/2014 10:33 AM 349,518 NEWS.txt
05/18/2014 10:37 AM 102,400 py.exe
05/18/2014 10:38 AM 27,136 python.exe
05/18/2014 10:38 AM 2,734,592 python34.dll
05/18/2014 10:39 AM 27,648 pythonw.exe
05/18/2014 10:37 AM 102,912 pyw.exe
05/04/2014 10:32 PM 6,942 README.txt
12/08/2014 09:49 PM 1,000 rmvirtualenv.bat
01/12/2015 01:35 AM <DIR> Scripts
12/08/2014 09:49 PM 994 setprojectdir.bat
09/28/2014 01:28 AM <DIR> tcl
12/08/2014 09:49 PM 422 toggleglobalsitepackages.bat
09/28/2014 01:28 AM <DIR> Tools
12/08/2014 09:49 PM 183 whereis.bat
12/08/2014 09:49 PM 936 workon.bat
23 File(s) 4,165,825 bytes
11 Dir(s) 30,791,503,872 bytes free
C:\Python34>
你是如何嘗試安裝python2的?你不使用python2和3的相同軟件包 –
Py2或Py3作爲main的路徑嗎? – GLHF
我自己我使用pip來安裝軟件包,因爲我可以選擇python版本來安裝軟件包。 –