簡體   English   中英

無法在 pycharm Windows 10 上安裝 python-binance

[英]Not able to install python-binance on pycharm Windows 10

在 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

並且一直是紅色的。

今天我遇到了同樣的問題 嘗試了一切。 然后一切都說得通了。

  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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM