Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Numpy 导入不起bat文件的作用;但在spyder工作_Numpy_Batch File_Installation_Pandas Datareader - Fatal编程技术网

Numpy 导入不起bat文件的作用;但在spyder工作

Numpy 导入不起bat文件的作用;但在spyder工作,numpy,batch-file,installation,pandas-datareader,Numpy,Batch File,Installation,Pandas Datareader,我仍然不是最老练的python用户;但我无法克服这个可能很简单的问题。我有一个与spyder接口完美配合的代码。我想通过创建bat文件使其成为一项经常性任务。反过来触发cmd接口的bat文件不导入PANDA_数据读取器,代码被卡住并中止 import pandas_datareader.data as web 上面的这一行创建了下面的错误。这是一篇很长的文章 File "C:\Users\myself\anaconda3\lib\site-packages\pandas_datare

我仍然不是最老练的python用户;但我无法克服这个可能很简单的问题。我有一个与spyder接口完美配合的代码。我想通过创建bat文件使其成为一项经常性任务。反过来触发cmd接口的bat文件不导入PANDA_数据读取器,代码被卡住并中止

import pandas_datareader.data as web
上面的这一行创建了下面的错误。这是一篇很长的文章

File "C:\Users\myself\anaconda3\lib\site-packages\pandas_datareader\__init__.py", line 2, in <module>
    from .data import (   File "C:\Users\myself\anaconda3\lib\site-packages\pandas_datareader\data.py", line 9, in <module>
    from pandas.util._decorators import deprecate_kwarg   File "C:\Users\myself\anaconda3\lib\site-packages\pandas\__init__.py", line 17, in <module>
    "Unable to import required dependencies:\n" + "\n".join(missing_dependencies) ImportError: Unable to import required dependencies: numpy:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
  1. Check that you expected to use Python3.7 from "C:\Users\myself\anaconda3\python.exe",
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy version "1.17.0" you're trying to use.
  2. If (1) looks fine, you can open a new issue at
     https://github.com/numpy/numpy/issues.  Please include details on:
     - how you installed Python
     - how you installed numpy
     - your operating system
     - whether or not you have multiple versions of Python installed
     - if you built from source, your compiler versions and ideally a build log

- If you're working with a numpy git repository, try `git clean -xdf`
  (removes all files not under version control) and rebuild numpy.
文件“C:\Users\imf\anaconda3\lib\site packages\pandas\u datareader\uuuuu init\uuuuuu.py”,第2行,在
从.data导入(文件“C:\Users\imf\anaconda3\lib\site packages\pandas\u datareader\data.py”,第9行,在
从pandas.util.\u decorators导入不推荐的\u kwarg文件“C:\Users\imf\anaconda3\lib\site packages\pandas\\uuuuuuuuu init\uuuuuuuuuu.py”,第17行,在
“无法导入所需的依赖项:\n”+“\n”。加入(缺少依赖项)导入错误:无法导入所需的依赖项:numpy:
重要提示:请阅读本文,了解如何解决此问题的建议!
导入numpy c扩展失败。
-尝试卸载并重新安装numpy。
-如果您已经这样做了,那么:
1.检查您是否希望从“C:\Users\imf\anaconda3\python.exe”使用Python3.7,
在你的路径或PYTHONPATH中没有可以
干扰您尝试使用的Python和numpy版本“1.17.0”。
2.如果(1)看起来不错,您可以在
https://github.com/numpy/numpy/issues.  请详细说明:
-您是如何安装Python的
-你是如何安装numpy的
-您的操作系统
-是否安装了多个版本的Python
-如果您是从源代码构建的,那么您的编译器版本和理想情况下的构建日志
-如果您正在使用numpy git存储库,请尝试使用`git clean-xdf`
(删除所有不受版本控制的文件)并重新生成numpy。
注意:这个错误有很多可能的原因,所以请不要评论 关于此的现有问题-打开一个新的


最初的错误是:
DLL加载失败:找不到指定的模块。

我不知道这是一个问题还是一个答案。我对问题进行了一些编辑。令人困惑的是,整个冗长的文本都是错误消息本身。