【问题标题】:Not able to install python-binance on pycharm Windows 10无法在 pycharm Windows 10 上安装 python-binance
【发布时间】:2019-11-14 18:08:47
【问题描述】:

在 Python 3.7.3 上安装 Twisted==17.9.0 失败。也无法安装 Cryptography==2.1.4

想在 Pycharm 上为 python-binance 安装必要的模块

我尝试过使用 anaconda 版本的 python,但我仍然收到密码学的安装错误。

C:\Users\Laptop\PycharmProjects\Python Trading2\venv\Scripts>pip install Twisted==17.9.0

Collecting hyperlink>=17.1.1 (from Twisted==17.9.0)
  Using cached https://files.pythonhosted.org/packages/7f/91/e916ca10a2de1cb7101a9b24da546fb90ee14629e23160086cf3361c4fb8/hyperlink-19.0.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in c:\program files\python37\lib\site-packages (from zope.interface>=4.0.2->Twisted==17.9.0) (39.0.1)
Collecting attrs>=16.1.0 (from Automat>=0.3.0->Twisted==17.9.0)
  Using cached https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl
Requirement already satisfied: six in c:\program files\python37\lib\site-packages (from Automat>=0.3.0->Twisted==17.9.0) (1.12.0)
Requirement already satisfied: idna>=2.5 in c:\program files\python37\lib\site-packages (from hyperlink>=17.1.1->Twisted==17.9.0) (2.8)
Installing collected packages: zope.interface, constantly, incremental, attrs, Automat, hyperlink, Twisted
  Running setup.py install for Twisted ... error
    ERROR: Complete output from command 'c:\program files\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\Laptop\\AppData\\Local\\Temp\\pip-install-x06wgdqo\\Twisted\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Laptop\AppData\Local\Temp\pip-record-jhd2kvhg\install-record.txt' --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\twisted
    copying src\twisted\copyright.py -> build\lib.win-amd64-3.7\twisted
    copying src\twisted\plugin.py -> build\lib.win-amd64-3.7\twisted
    copying src

然后是红色。

【问题讨论】:

    标签: python python-3.x pycharm failed-installation binance


    【解决方案1】:

    今天我遇到了同样的问题尝试了一切。然后一切都说得通了。

    1. 安装 VSC 构建工具:

      https://docs.microsoft.com/en-us/answers/questions/136595/error-microsoft-visual-c-140-or-greater-is-require.html

    2. 下载https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted(如果出现.whl 错误)(文件名“Twisted-20.3.0-cp39-cp39-win_amd64.whl”)。使用 CMD 位置/文件名安装它。

    3. 通过cmd安装:

      pip Install Scrapy
      

    【讨论】:

      猜你喜欢
      • 2020-05-18
      • 1970-01-01
      • 2022-08-05
      • 1970-01-01
      • 2020-02-19
      • 1970-01-01
      • 2021-05-20
      • 2019-02-09
      • 2018-11-30
      相关资源
      最近更新 更多