简体   繁体   中英

Switching back : pypy =to=> python?

I installed pypy to test it ! Now when I try to do something it seems to prefer pypy directories , instead of python. Ex.:

 # pip install --upgrade setuptools
 /usr/local/lib/pypy2.7/dist-packages/pip/_vendor/urllib3/util............


#  ls /usr/local/lib/p
perl/      pypy2.7/   python2.7/ python3.4/ 

Is there way to revert to use python libs ? I'm OK with leaving pypy installed for future tests.

There are several things that can cause this behavior. My first suggestion would be to uninstall PyPy. If you don't want to uninstall PyPy, I suggest the following:

  1. Check your system path variable. If PyPy is found earlier than Python, that's what will be executed. Remove the path to the PyPy or move the path to PyPy AFTER the path for Python.

  2. Check for symlinks to pip found in PyPy and point them to pip from Python.

Tip: Use virtual environments so you can have multiple versions of Python and modules installed on the same development platform without interfering with one another and avoid this problem entirely.

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