导入tushare出错,都是找不到指定的模块

导入tushare出错,都是找不到指定的模块
执行的代码只有一条

import tushare

python2.7出错提示:

Traceback (most recent call last):
  File "C:/Documents and Settings/Administrator/PycharmProjects/lainghua1/down.py", line 2, in 
    import tushare as ts
  File "C:\Python27\lib\site-packages\tushare\__init__.py", line 82, in 
    from tushare.pro.data_pro import (pro_api, pro_bar)
  File "C:\Python27\lib\site-packages\tushare\pro\data_pro.py", line 9, in 
    from tushare.pro import client
  File "C:\Python27\lib\site-packages\tushare\pro\client.py", line 11, in 
    import zmq
  File "C:\Python27\lib\site-packages\zmq\__init__.py", line 47, in 
    from zmq import backend
  File "C:\Python27\lib\site-packages\zmq\backend\__init__.py", line 40, in 
    reraise(*exc_info)
  File "C:\Python27\lib\site-packages\zmq\backend\__init__.py", line 27, in 
    _ns = select_backend(first)
  File "C:\Python27\lib\site-packages\zmq\backend\select.py", line 27, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "C:\Python27\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in 
    from . import (constants, error, message, context,
ImportError: DLL load failed: �Ҳ���ָ����ģ�顣

#python3.4 因为用的是xp所以只能用到3.4版的python

Traceback (most recent call last):
  File "C:/Documents and Settings/Administrator/PycharmProjects/lainghua1/down.py", line 2, in 
    import tushare as ts
  File "C:\Python34\lib\site-packages\tushare\__init__.py", line 82, in 
    from tushare.pro.data_pro import (pro_api, pro_bar)
  File "C:\Python34\lib\site-packages\tushare\pro\data_pro.py", line 9, in 
    from tushare.pro import client
  File "C:\Python34\lib\site-packages\tushare\pro\client.py", line 11, in 
    import zmq
  File "C:\Python34\lib\site-packages\zmq\__init__.py", line 47, in 
    from zmq import backend
  File "C:\Python34\lib\site-packages\zmq\backend\__init__.py", line 40, in 
    reraise(*exc_info)
  File "C:\Python34\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
    raise value
  File "C:\Python34\lib\site-packages\zmq\backend\__init__.py", line 27, in 
    _ns = select_backend(first)
  File "C:\Python34\lib\site-packages\zmq\backend\select.py", line 27, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "C:\Python34\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in 
    from . import (constants, error, message, context,
ImportError: DLL load failed: "找不到指定的模块"。

=====================================================================

找到解决办法了
上官网下载tushare-1.2.21-py2-none-any.whl

安装
pip install tushare-1.2.21-py2-none-any.whl

错误已经更新了,变成
ImportError: No module named bs4

pip install bs4 后就解决这个问题了

你可能感兴趣的:(导入tushare出错,都是找不到指定的模块)