将瓶子包安装到python 2.7时遇到问题
我正在使用Windows 7系统
有python 2.7& 3.4。
' PY'命令是用于python 2.7& ' PYTHON'命令是for python 3.4
现在如何在python 2.7中安装bottle包
C:> py
import bottle
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named bottle
我使用 easy_install -U bottle 命令安装了python 3.4 它适用于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>
答案 0 :(得分:1)
我建议先安装pip
然后再运行命令
pip install bottle
在你的shell中。
答案 1 :(得分:0)
答案 2 :(得分:0)