2.57K 浏览
0

pip install -U tqsdk
Collecting tqsdk
Downloading tqsdk-3.0.2-py3-none-win_amd64.whl (4.6 MB)
|████████████████████████████████| 4.6 MB 20 kB/s
Requirement already satisfied: pyjwt in e:\python310\lib\site-packages (from tqsdk) (2.3.0)
Requirement already satisfied: requests in e:\python310\lib\site-packages (from tqsdk) (2.26.0)
Collecting aiohttp
Using cached aiohttp-3.8.1-cp310-cp310-win_amd64.whl (555 kB)
Requirement already satisfied: simplejson in e:\python310\lib\site-packages (from tqsdk) (3.17.6)
Requirement already satisfied: websockets>=8.1 in e:\python310\lib\site-packages (from tqsdk) (10.1)
Requirement already satisfied: scipy in e:\python310\lib\site-packages (from tqsdk) (1.7.3)
Requirement already satisfied: sgqlc in e:\python310\lib\site-packages (from tqsdk) (14.1)
Requirement already satisfied: numpy in e:\python310\lib\site-packages (from tqsdk) (1.21.4)
Requirement already satisfied: shinny-structlog in e:\python310\lib\site-packages (from tqsdk) (0.0.4)
Collecting psutil
Using cached psutil-5.8.0.tar.gz (470 kB)
Preparing metadata (setup.py) … done
Collecting pandas>=1.1.0
Using cached pandas-1.3.4-cp310-cp310-win_amd64.whl (10.2 MB)
Requirement already satisfied: certifi in e:\python310\lib\site-packages (from tqsdk) (2021.10.8)
Requirement already satisfied: python-dateutil>=2.7.3 in e:\python310\lib\site-packages (from pandas>=1.1.0->tqsdk) (2.8.2)
Requirement already satisfied: pytz>=2017.3 in e:\python310\lib\site-packages (from pandas>=1.1.0->tqsdk) (2021.3)
Requirement already satisfied: frozenlist>=1.1.1 in e:\python310\lib\site-packages (from aiohttp->tqsdk) (1.2.0)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in e:\python310\lib\site-packages (from aiohttp->tqsdk) (4.0.1)
Requirement already satisfied: yarl<2.0,>=1.0 in e:\python310\lib\site-packages (from aiohttp->tqsdk) (1.7.2)
Requirement already satisfied: aiosignal>=1.1.2 in e:\python310\lib\site-packages (from aiohttp->tqsdk) (1.2.0)
Requirement already satisfied: attrs>=17.3.0 in e:\python310\lib\site-packages (from aiohttp->tqsdk) (21.2.0)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in e:\python310\lib\site-packages (from aiohttp->tqsdk) (2.0.8)
Requirement already satisfied: multidict<7.0,>=4.5 in e:\python310\lib\site-packages (from aiohttp->tqsdk) (5.2.0)
Requirement already satisfied: idna<4,>=2.5 in e:\python310\lib\site-packages (from requests->tqsdk) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\python310\lib\site-packages (from requests->tqsdk) (1.26.7)
Requirement already satisfied: graphql-core in e:\python310\lib\site-packages (from sgqlc->tqsdk) (3.1.6)
Requirement already satisfied: typing-extensions>=3.6.5 in e:\python310\lib\site-packages (from async-timeout<5.0,>=4.0.0a3->aiohttp->tqsdk) (4.0.1)
Requirement already satisfied: six>=1.5 in e:\python310\lib\site-packages (from python-dateutil>=2.7.3->pandas>=1.1.0->tqsdk) (1.16.0)
Using legacy ‘setup.py install’ for psutil, since package ‘wheel’ is not installed.
Installing collected packages: psutil, pandas, aiohttp, tqsdk
Running setup.py install for psutil … error
ERROR: Command errored out with exit status 1:
command: ‘E:\Python310\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘D:\\Personal\\Temp\\pip-install-zdbsc_ez\\psutil_1d88eac1989448fdb65b843f90f64e45\\setup.py'”‘”‘; __file__='”‘”‘D:\\Personal\\Temp\\pip-install-zdbsc_ez\\psutil_1d88eac1989448fdb65b843f90f64e45\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ install –record ‘D:\Personal\Temp\pip-record-j1opef8l\install-record.txt’ –single-version-externally-managed –compile –install-headers ‘E:\Python310\Include\psutil’
cwd: D:\Personal\Temp\pip-install-zdbsc_ez\psutil_1d88eac1989448fdb65b843f90f64e45\
Complete output (38 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\psutil
copying psutil\_common.py -> build\lib.win-amd64-3.10\psutil
copying psutil\_compat.py -> build\lib.win-amd64-3.10\psutil
copying psutil\_psaix.py -> build\lib.win-amd64-3.10\psutil
copying psutil\_psbsd.py -> build\lib.win-amd64-3.10\psutil
copying psutil\_pslinux.py -> build\lib.win-amd64-3.10\psutil
copying psutil\_psosx.py -> build\lib.win-amd64-3.10\psutil
copying psutil\_psposix.py -> build\lib.win-amd64-3.10\psutil
copying psutil\_pssunos.py -> build\lib.win-amd64-3.10\psutil
copying psutil\_pswindows.py -> build\lib.win-amd64-3.10\psutil
copying psutil\__init__.py -> build\lib.win-amd64-3.10\psutil
creating build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\runner.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_aix.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_bsd.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_connections.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_contracts.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_linux.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_misc.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_osx.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_posix.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_process.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_sunos.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_system.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_testutils.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_unicode.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\test_windows.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\__init__.py -> build\lib.win-amd64-3.10\psutil\tests
copying psutil\tests\__main__.py -> build\lib.win-amd64-3.10\psutil\tests
running build_ext
building ‘psutil._psutil_windows’ extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/
—————————————-
ERROR: Command errored out with exit status 1: ‘E:\Python310\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘D:\\Personal\\Temp\\pip-install-zdbsc_ez\\psutil_1d88eac1989448fdb65b843f90f64e45\\setup.py'”‘”‘; __file__='”‘”‘D:\\Personal\\Temp\\pip-install-zdbsc_ez\\psutil_1d88eac1989448fdb65b843f90f64e45\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ install –record ‘D:\Personal\Temp\pip-record-j1opef8l\install-record.txt’ –single-version-externally-managed –compile –install-headers ‘E:\Python310\Include\psutil’ Check the logs for full command output.

李思恒 已回答的问题 2021年12月9日
0

我试了下3.0.2安装没问题,看了下你的报错
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”:
百度下这个错误应该是你少环境

李思恒 已回答的问题 2021年12月9日
您正在查看2个答案中的1个,单击此处查看所有答案。