安装tradingWithPython模块-ImportError:没有名为'的模块;库函数&x27;

安装tradingWithPython模块-ImportError:没有名为'的模块;库函数&x27;,python,module,Python,Module,我是一个彻头彻尾的傻瓜,所以请同情我。我已经寻找我问题的答案几个小时了,但我没有取得任何进展。我正在使用Anaconda3 32位Windows版本的IPython 3.4(笔记本电脑) 我想安装tradingWithPython模块,使用!pip安装tradingWithPython。它似乎在lib文件夹(在那里)中查找functions.py文件,但没有找到它。这就是我得到的: 收集Python交易 使用缓存tradingWithPython-0.0.14.0.zip Traceback (

我是一个彻头彻尾的傻瓜,所以请同情我。我已经寻找我问题的答案几个小时了,但我没有取得任何进展。我正在使用Anaconda3 32位Windows版本的IPython 3.4(笔记本电脑)

我想安装tradingWithPython模块,使用!pip安装tradingWithPython。它似乎在lib文件夹(在那里)中查找functions.py文件,但没有找到它。这就是我得到的:

收集Python交易

使用缓存tradingWithPython-0.0.14.0.zip

Traceback (most recent call last):

  File "<string>", line 20, in <module>

  File "C:\Users\Gary\AppData\Local\Temp\pip-build-8doxz5zd\tradingWithPython\setup.py", line 3, in <module>
    import tradingWithPython as twp

  File "C:\Users\Gary\AppData\Local\Temp\pip-build-8doxz5zd\tradingWithPython\tradingWithPython\__init__.py", line 12, in <module>
    from lib.functions import *

ImportError: No module named 'lib.functions'

Complete output from command python setup.py egg_info:

Traceback (most recent call last):

  File "<string>", line 20, in <module>

  File "C:\Users\Gary\AppData\Local\Temp\pip-build-8doxz5zd\tradingWithPython\setup.py", line 3, in <module>

    import tradingWithPython as twp

  File "C:\Users\Gary\AppData\Local\Temp\pip-build-8doxz5zd\tradingWithPython\tradingWithPython\__init__.py", line 12, in <module>

    from lib.functions import *

ImportError: No module named 'lib.functions'
回溯(最近一次呼叫最后一次):
文件“”,第20行,在
文件“C:\Users\Gary\AppData\Local\Temp\pip-build-8doxz5zd\tradingWithPython\setup.py”,第3行,在
使用Python作为twp导入贸易
文件“C:\Users\Gary\AppData\Local\Temp\pip-build-8doxz5zd\tradingWithPython\tradingWithPython\\ uu_init__.py”,第12行,in
从lib.functions导入*
ImportError:没有名为“lib.functions”的模块
从命令python setup.py egg_info完成输出:
回溯(最近一次呼叫最后一次):
文件“”,第20行,在
文件“C:\Users\Gary\AppData\Local\Temp\pip-build-8doxz5zd\tradingWithPython\setup.py”,第3行,在
使用Python作为twp导入贸易
文件“C:\Users\Gary\AppData\Local\Temp\pip-build-8doxz5zd\tradingWithPython\tradingWithPython\\ uu_init__.py”,第12行,in
从lib.functions导入*
ImportError:没有名为“lib.functions”的模块
我错过了什么?我也尝试从cmd行安装,但结果相同。我有一个Python2.7版本,它给出了相同的结果


非常感谢

模块是为python 2.7编写的,应该正确安装。只需检查python版本就可以了

若要在基于python 3.x的Anaconda中运行模块,应执行以下步骤:

  • 使用Python-0.0.14.0.zip解压Trading
  • 运行“Anaconda命令提示符”
  • 在命令提示下写入:

    cd %path_to_unzipped_folder%/tradingWithPython-0.0.14.0
    2to3 -w -n --no-diffs .
    
  • 完成了

安装软件包

python setup.py install