2.89K 浏览
0

1、使用带 -i 参数的安装命令:

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

2、使用不带 -i 参数的安装命令:

pip install tqsdk2 https://pypi.tuna.tsinghua.edu.cn/simple some-package -trusted-host=pypi.tuna.tsinghua.edu.cn
Collecting https://pypi.tuna.tsinghua.edu.cn/simple
Downloading https://pypi.tuna.tsinghua.edu.cn/simple (17.6 MB)
|████████████████████████████████| 17.6 MB 3.3 MB/s
ERROR: Cannot unpack file D:\Temp\pip-unpack-8_175qc2\simple (downloaded from D:\Temp\pip-req-build-hzn3nccv, content-type: text/html; charset=utf-8); cannot detect archive format
ERROR: Cannot determine archive format of D:\Temp\pip-req-build-hzn3nccv

换了还几个不同的国内镜像源,都出现了相同的错误提示,导致tqsdk2始终无法安装!

快期用户1122334455 已回答的问题 2021年6月6日
0

pip install tqsdk2 –U –i https://pypi.tuna.tsinghua.edu.cn/simple -trusted-host=pypi.tuna.tsinghua.edu.cn

强烈建议如果tqsdk还使用不熟练的情况下不要使用tqsdk2

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