首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装tradingwithpython包时Anaconda conda安装错误

安装tradingwithpython包时Anaconda conda安装错误
EN

Stack Overflow用户
提问于 2014-05-01 22:48:38
回答 2查看 1.8K关注 0票数 1

在我的windows 7机器上安装anaconda之后,我尝试使用以下方法安装tradingwithpython包。

pip安装tradingwithpython

这是成功的,但当我尝试从ipython导入时,我得到了以下错误:

代码语言:javascript
复制
#==================================================
Python 2.7.6 |Anaconda 1.9.2 (32-bit)| (default, Nov 11 2013, 10:50:31) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 1.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import tradingwithpytohn
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-b118a20534e9> in <module>()
----> 1 import tradingwithpytohn

ImportError: No module named tradingwithpytohn

#==========================================================

所以在这之后,我试着创建一个食谱

代码语言:javascript
复制
C:\Users\dave\Anaconda>conda skeleton pypi tradingwithpython --no-download
tradingwithpython not found, trying Tradingwithpython
Using url https://pypi.python.org/packages/source/t/tradingWithPython/tradingWithPython-0.0.10.zip (20684) for tradingWithPython.
Using "BSD" for the license
Writing recipe for tradingwithpython
Done

然后构建这个包,它给了我一个错误:

代码语言:javascript
复制
C:\Users\dave\Anaconda>conda build tradingwithpython
C:\Users\dave\Anaconda\envs\_build\Lib\SITE-P~1\yaml.dll - Access is denied.
C:\Users\dave\Anaconda\envs\_build\Lib\SITE-P~1\_yaml.pyd - Access is denied.
Fetching package metadata: ...
Solving package specifications: .
The following packages will be linked:

    package                    |            build
    ---------------------------|-----------------
    python-2.7.6               |                0   hard-link

Linking packages ...
[      COMPLETE      ] |#################################################| 100%
BUILD START: tradingwithpython-0.0.10-py27_0
Source cache directory is: C:\Users\dave\Anaconda\conda-bld\src_cache
Found source in cache: tradingWithPython-0.0.10.zip
source tree in: C:\Users\dave\Anaconda\conda-bld\work\tradingWithPython-0.0.10

C:\Users\dave\Anaconda\conda-bld\work\tradingWithPython-0.0.10>call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.ba
t" x86
Setting environment for using Microsoft Visual Studio 2008 x86 tools.

C:\Users\dave\Anaconda\conda-bld\work\tradingWithPython-0.0.10>set TMP=C:\Users\dave\AppData\Local\Temp
....
....
....
C:\Users\dave\Anaconda\conda-bld\work\tradingWithPython-0.0.10>"C:\Users\dave\Anaconda\envs\_build\python.exe" setup.py instal
l
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    import tradingWithPython as twp
  File "C:\Users\dave\Anaconda\conda-bld\work\tradingWithPython-0.0.10\tradingWithPython\__init__.py", line 5, in <module>
    from lib.functions import *
  File "C:\Users\dave\Anaconda\conda-bld\work\tradingWithPython-0.0.10\tradingWithPython\lib\functions.py", line 9, in <module>
    from scipy  import  polyfit, polyval
ImportError: No module named scipy

C:\Users\dave\Anaconda\conda-bld\work\tradingWithPython-0.0.10>if errorlevel 1 exit 1
Command failed: C:\Windows\system32\cmd.exe /c bld.bat

知道为什么这不管用吗?

谢谢。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-05-02 19:29:08

ImportError:没有一个模块名为scipy

可能是您的Anaconda安装没有完成。Scipy是一个标准模块,在Anaconda安装后应该是可导入的。

你的问题似乎是一个罕见的问题,我没有听说过安装Win 7和Anaconda下的问题。

我建议你重新安装你的蟒蛇,然后再试一次。

票数 0
EN

Stack Overflow用户

发布于 2014-11-09 09:02:36

把这个命令写在笔记本上,而不是终端上。

代码语言:javascript
复制
!pip install tradingWithPython

然后自动选择所需的anaconda环境。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23417985

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档