python ./test.py

test.py 中有 import akshare as ak

故报错:
ModuleNotFoundError: No module named 'akshare'
执行:pip install akshare 又报错:
Connection to files.pythonhosted.org timed out.

二、问题解决:

pip install akshare -i https://pypi.tuna.tsinghua.edu.cn/simple   #清华镜像
或者
pip install akshare -i  https://pypi.douban.com/simple    #豆瓣镜像

最后,网上说 Anaconda 很强大,记录一下。

pip install akshare -i https://pypi.tuna.tsinghua.edu.cn/simple #清华镜像。pip install akshare -i https://pypi.douban.com/simple #豆瓣镜像。test.py 中有 import akshare as ak。最后,网上说 Anaconda 很强大,记录一下。