ricequant / rqalpha

A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities
http://rqalpha.io
Other
5.39k stars 1.62k forks source link

安装时问题 #314

Closed tby1995 closed 6 years ago

tby1995 commented 6 years ago

你好:

利用pip 10.0.1 安装时出现以下问题

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  **File "C:\Users\boyu\AppData\Local\Temp\pip-install-1jwijk9p\rqalpha\setup.py", line 20, in <module>
    from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'**

网上说此原因可能与 pip 10 更新有关, 可否将 setup.py", line 20
from pip.req import parse_requirements

改为 try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements

nitinvinayak commented 6 years ago

Try reinstalling the module. To install pip you need to follow this https://pypi.python.org/pypi/setuptools once you get easy_install I installed pip first and then run the following command.

sudo easy_install pip sudo python setup.py install

amy0li commented 6 years ago

遇到同样问题,pip更新到最新了,最后怎么解决呢?

plckOne commented 6 years ago

pip降到10以下

wuxin1030 commented 6 years ago

最方便的就是主动降级pip python.exe -m pip install -U pip==9.0.3

lw5885799 commented 6 years ago

遇到同样的问题 pip降到10以下的话 安装其他的库又会要求升级怎么破

wooego commented 6 years ago

降级pip到9.0.3安装成功后,再升级回10.0.1

kid143 commented 6 years ago

现在pip官方把req移到_internal里面了,表示不对外开放了,简直日了狗。

Cuizi7 commented 6 years ago

fixed in 3.0.10