系统win10home 64位
Pycharm2017.2 anaconda4.4x64 及自带python3.6.1 正常安装。
pip install tushare 正常,project interpreter 能看到tushare0.87 在列表中。Ipython也能导入能运行。
但是在pycharm中,最简单的代码
import tushare as ts
print(ts.__version__)
提示错误##########
D:\Programs\Anaconda3\python.exe D:/PythonWorks/PycharmProjects/Stocks/tushare.py
Traceback (most recent call last):
File "D:/PythonWorks/PycharmProjects/Stocks/tushare.py", line 1, in <module>
import tushare as ts
File "D:\PythonWorks\PycharmProjects\Stocks\tushare.py", line 2, in <module>
print(ts.__version__)
AttributeError: module 'tushare' has no attribute '__version__'
Process finished with exit code 1
###########求大神帮帮忙。先谢谢。