pip install tqsdk2 -i http://mirrors.aliyun.com/pypi/simple/ -trusted-host=mirrors.aliyun.com
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host mirrors.aliyun.com’.
ERROR: Could not find a version that satisfies the requirement tqsdk2 (from versions: none)
ERROR: No matching distribution found for tqsdk2
遇到了同样的问题,刚刚升级完tqsdk,再安装tqsdk2遇到了和楼主一样的问题:
E:\Program Files\python365\Scripts>pip install tqsdk2 -i https://pypi.tuna.tsinghua.edu.cn/simple some-package -trusted-host=pypi.tuna.tsinghua.edu.cn
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement tqsdk2 (from versions: none)
ERROR: No matching distribution found for tqsdk2
E:\Program Files\python365\Scripts>pip install tqsdk2
ERROR: Could not find a version that satisfies the requirement tqsdk2 (from versions: none)
ERROR: No matching distribution found for tqsdk2
E:\Program Files\python365\Scripts>pip install –upgrade tqsdk
Requirement already satisfied: tqsdk in e:\program files\python365\lib\site-packages (2.3.2)
Collecting tqsdk
Downloading tqsdk-2.6.2-cp36-cp36m-win_amd64.whl (2.5 MB)
|████████████████████████████████| 2.5 MB 364 kB/s
Requirement already satisfied: websockets>=8.1 in e:\program files\python365\lib\site-packages (from tqsdk) (8.1)
Requirement already satisfied: numpy in e:\program files\python365\lib\site-packages (from tqsdk) (1.18.4)
Collecting pandas>=1.1.0
Downloading pandas-1.1.5-cp36-cp36m-win_amd64.whl (8.7 MB)
|████████████████████████████████| 8.7 MB 409 kB/s
Requirement already satisfied: simplejson in e:\program files\python365\lib\site-packages (from tqsdk) (3.17.0)
Requirement already satisfied: psutil in e:\program files\python365\lib\site-packages (from tqsdk) (5.8.0)
Requirement already satisfied: scipy in e:\program files\python365\lib\site-packages (from tqsdk) (1.4.1)
Requirement already satisfied: certifi in e:\program files\python365\lib\site-packages (from tqsdk) (2020.4.5.1)
Requirement already satisfied: pyjwt in e:\program files\python365\lib\site-packages (from tqsdk) (1.7.1)
Requirement already satisfied: requests in e:\program files\python365\lib\site-packages (from tqsdk) (2.23.0)
Requirement already satisfied: shinny-structlog in e:\program files\python365\lib\site-packages (from tqsdk) (0.0.4)
Requirement already satisfied: aiohttp in e:\program files\python365\lib\site-packages (from tqsdk) (3.6.2)
Requirement already satisfied: python-dateutil>=2.7.3 in e:\program files\python365\lib\site-packages (from pandas>=1.1.0->tqsdk) (2.8.1)
Requirement already satisfied: pytz>=2017.2 in e:\program files\python365\lib\site-packages (from pandas>=1.1.0->tqsdk) (2020.1)
Requirement already satisfied: six>=1.5 in e:\program files\python365\lib\site-packages (from python-dateutil>=2.7.3->pandas>=1.1.0->tqsdk) (1.14.0)
Requirement already satisfied: typing-extensions>=3.6.5 in e:\program files\python365\lib\site-packages (from aiohttp->tqsdk) (3.7.4.2)
Requirement already satisfied: idna-ssl>=1.0 in e:\program files\python365\lib\site-packages (from aiohttp->tqsdk) (1.1.0)
Requirement already satisfied: attrs>=17.3.0 in e:\program files\python365\lib\site-packages (from aiohttp->tqsdk) (19.3.0)
Requirement already satisfied: chardet<4.0,>=2.0 in e:\program files\python365\lib\site-packages (from aiohttp->tqsdk) (3.0.4)
Requirement already satisfied: yarl<2.0,>=1.0 in e:\program files\python365\lib\site-packages (from aiohttp->tqsdk) (1.4.2)
Requirement already satisfied: multidict<5.0,>=4.5 in e:\program files\python365\lib\site-packages (from aiohttp->tqsdk) (4.7.5)
Requirement already satisfied: async-timeout<4.0,>=3.0 in e:\program files\python365\lib\site-packages (from aiohttp->tqsdk) (3.0.1)
Requirement already satisfied: idna>=2.0 in e:\program files\python365\lib\site-packages (from idna-ssl>=1.0->aiohttp->tqsdk) (2.9)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in e:\program files\python365\lib\site-packages (from requests->tqsdk) (1.25.9)
Installing collected packages: pandas, tqsdk
Attempting uninstall: pandas
Found existing installation: pandas 1.0.3
Uninstalling pandas-1.0.3:
Successfully uninstalled pandas-1.0.3
Attempting uninstall: tqsdk
Found existing installation: tqsdk 2.3.2
Uninstalling tqsdk-2.3.2:
Successfully uninstalled tqsdk-2.3.2
Successfully installed pandas-1.1.5 tqsdk-2.6.2
换这个试一下
pip install tqsdk2 -i https://pypi.tuna.tsinghua.edu.cn/simple some-package -trusted-host=pypi.tuna.tsinghua.edu.cn
问题没有得到解决