简体   繁体   中英

Switching between python3 interpreters in windows

I have been using python 34 and use pip from command line in windows to install my packages. Now I have installed python 36 without uninstalling python 34. However I cannot install packages into python 36 using pip as it is configured to Python 34. Any elegant solutions for this problem.

I'm adding my comment as an answer so I can add my reference.

use this command to specify which python version you want to install packages too. Just replace 'SomePackage' with the package name you want to install.

 py -3.6 -m pip install SomePackage

I found this on this Here

EDIT This is for Windows. For Mac or Linux users switch py -3.6 to python3.6

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