简体   繁体   中英

Using full path of pip to install packge, failed

I have python2.7, python3.5 and winPython3.5 in my computer. Now I want to install package gensim to winPython3.5 in Windows command line. I use the full path of pip of winPython so I can install package in winPython. The command is

C:\Users\SHUYU LYU>"C:\Users\SHUYU LYU\Downloads\WinPython-64bit-3.5.2.3\python-3.5.2.amd64\Scripts\pip.exe" install gensim

But it still using python2.7 to install this package. The information in the console is showed below:

Requirement already satisfied (use --upgrade to upgrade): gensim in c:\python27\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): scipy>=0.7.0 in c:\python27\lib\site-packages (from gensim)
Requirement already satisfied (use --upgrade to upgrade): smart-open>=1.2.1 in c:\python27\lib\site-packages (from gensim)
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.0 in c:\python27\lib\site-packages (from gensim)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.3 in c:\python27\lib\site-packages (from gensim)
Requirement already satisfied (use --upgrade to upgrade): boto>=2.32 in c:\python27\lib\site-packages (from smart-open>=1.2.1->gensim)
Requirement already satisfied (use --upgrade to upgrade): bz2file in c:\python27\lib\site-packages (from smart-open>=1.2.1->gensim)
Requirement already satisfied (use --upgrade to upgrade): requests in c:\python27\lib\site-packages (from smart-open>=1.2.1->gensim)

Could Anyone help with that? Since full path install should be work, I still do not figure out why it still uses pip of python2.7

Try this:

python -m pip install <package name>

or for python3 :

python3 -m pip install <package name>

if all else fails, try this:

click on icon "WinPython Command Prompt.exe"
type "pip install gensim"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM