Python 2.7 无法使用python 2.7安装datascience-ValueError:此软件包需要python>;=3

Python 2.7 无法使用python 2.7安装datascience-ValueError:此软件包需要python>;=3,python-2.7,anaconda,data-science,Python 2.7,Anaconda,Data Science,我的环境不允许我安装datascience,因为它将不再适用于python 2.7。(一周前还行) 我犯了一个错误,卸载了anaconda并重新安装它来解决绘图问题。看来我的计划适得其反 有谁能建议如何访问和安装先前版本的datascience(scipy?),以便我完成任务 下面是错误消息 (env1) C:\Users\WeeP>pip install datascience DEPRECATION: Python 2.7 will reach the end of its life

我的环境不允许我安装datascience,因为它将不再适用于python 2.7。(一周前还行)

我犯了一个错误,卸载了anaconda并重新安装它来解决绘图问题。看来我的计划适得其反

有谁能建议如何访问和安装先前版本的datascience(scipy?),以便我完成任务

下面是错误消息

(env1) C:\Users\WeeP>pip install datascience
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting datascience
  Using cached https://files.pythonhosted.org/packages/d0/b4/df6f7fcf6c4ab4858c46e629769729af634e32455f84d8d3fafd8f4c90fa/datascience-0.15.6.tar.gz
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\GrantP\anaconda3\envs\env1\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\grantp\\appdata\\local\\temp\\pip-install-_ir4yh\\datascience\\setup.py'"'"'; __file__='"'"'c:\\users\\grantp\\appdata\\local\\temp\\pip-install-_ir4yh\\datascience\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'c:\users\grantp\appdata\local\temp\pip-install-_ir4yh\datascience\pip-egg-info'
         cwd: c:\users\grantp\appdata\local\temp\pip-install-_ir4yh\datascience\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\grantp\appdata\local\temp\pip-install-_ir4yh\datascience\setup.py", line 7, in <module>
        raise ValueError('This package requires python >= 3.0')
    ValueError: This package requires python >= 3.0
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
(env1)C:\Users\WeeP>pip安装数据科学
弃用:Python 2.7将于2020年1月1日结束其使用寿命。请升级您的Python,因为Python 2.7将在该日期后不再维护。pip的未来版本将放弃对Python2.7的支持。有关pip中Python 2支持的更多详细信息,请访问https://pip.pypa.io/en/latest/development/release-process/#python-2-支持
收集数据科学
使用缓存https://files.pythonhosted.org/packages/d0/b4/df6f7fcf6c4ab4858c46e629769729af634e32455f84d8d3fafd8f4c90fa/datascience-0.15.6.tar.gz
错误:命令出错,退出状态为1:
命令:“C:\Users\GrantP\anaconda3\envs\env1\python.exe'-C”import sys,setuptools,tokenize;sys.argv[0]=“c:\\users\\grantp\\appdata\\local\\temp\\pip install-\u ir4yh\\datascience\\setup.py”“”__文件“c:\\users\\grantp\\appdata\\local\\temp\\pip install-\u ir4yh\\datascience\\setup.py”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“'exec'”)“egg\u info--egg base”c:\users\grantp\appdata\local\temp\pip install-\u ir4yh\datascience\pip egg info”
cwd:c:\users\grantp\appdata\local\temp\pip install-\u ir4yh\datascience\
完整输出(5行):
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“c:\users\grantp\appdata\local\temp\pip install-\u ir4yh\datascience\setup.py”,第7行,在
raise VALUERROR('此包需要python>=3.0')
ValueError:此包要求python>=3.0
----------------------------------------
错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出。

Python中的一些包是使用特定版本的Python开发的。如果要使用该软件包,必须至少具有用于开发该软件包的Python版本

你的问题中也有同样的情况。将Python2.7至少更新为Python3.0,因为
datascience
包至少需要Python3.0。那可以解决你的问题


不要使用不推荐使用的软件包或Python版本

使用
conda-search-Python
检查Python的最新版本。选择所需的版本,例如
3.5
,然后运行以下命令安装Python:
conda install Python=3.5