简体   繁体   中英

Error on installing IPython for Python 3: sys_platform == “darwin” and platform_python_implementation == “CPython”

I want to install IPython for Python3 using

sudo pip install ipython

on openSUSE 13.1. Since I have pip only installed for Python3 it should work and in fact works for other packages. I get the follwoing error:

Downloading/unpacking ipython
  Downloading ipython-4.1.2.tar.gz (5.0MB): 5.0MB downloaded
  Running setup.py egg_info for package ipython
    error in ipython setup command: Invalid environment marker: sys_platform == "darwin" and platform_python_implementation == "CPython"
    Complete output from command python setup.py egg_info:
    error in ipython setup command: Invalid environment marker: sys_platform == "darwin" and platform_python_implementation == "CPython"

Interestingly, IPython works, but starts with Python 2.7.6 after installation via YaST. What is going wrong?

This is likely due to an out-of-date setuptools. Try:

pip install --upgrade setuptools pip
pip list
pip install ipython

(with sudo, if necessary)

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