简体   繁体   中英

how to specify the version of python in command line for pip install

While installing OpenBayes module (from .exe file) for py2 i got error: "could not set a key value" (not a python error, but in dialog window)

I tried using pip install from a command line, but still get errors there.

Command "python setup.py egg_info" failed with error code 1 in C:\Users\CD3B~1\AppData\Local\Temp\pip-build-m4nnwa4o\OpenBayes\

Also not sure which python (2 or 3) is used when i type a command from console(I have both, but it seems that the OpenBayes module doesn't work with py3.

How should I specify the version while running pip install from command line?

你可以做

python2.7 /usr/bin/pip install package

我曾经遇到此错误,对我来说,我在python 2.x担任过pip ,在python3.x使用pip3 python3.x

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