RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
导入Anaconda中的第三方库运行时报错怎么办

这篇文章将为大家详细讲解有关导入Anaconda中的第三方库运行时报错怎么办,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

创新互联是一家集网站建设,宁明企业网站建设,宁明品牌网站建设,网站定制,宁明网站建设报价,网络营销,网络优化,宁明网站推广为一体的创新建站企业,帮助传统企业提升企业形象加强企业竞争力。可充分满足这一群体相比中小企业更为丰富、高端、多元的互联网需求。同时我们时刻保持专业、时尚、前沿,时刻以成就客户成长自我,坚持不断学习、思考、沉淀、净化自己,让我们为更多的企业打造出实用型网站。

导入Anaconda中的第三方库运行时报错怎么办

导入Anaconda中的第三方库运行时报错:ImportError: Missing required dependencies ['pandas']

保留的报错信息:

D:\Anaconda\envs\py2\python.exe E:/PythonTest/NaiveBayesian.py
Traceback (most recent call last):
  File "E:/PythonTest/NaiveBayesian.py", line 2, in 
    import numpy as np
  File "D:\Anaconda\envs\py2\lib\site-packages\numpy\__init__.py", line 142, in 
    from . import core
  File "D:\Anaconda\envs\py2\lib\site-packages\numpy\core\__init__.py", line 71, in 
    raise ImportError(msg)
ImportError: 

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

Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
Here is how to proceed:
- If you're working with a numpy git repository, try `git clean -xdf`
  (removes all files not under version control) and rebuild numpy.
- If you are simply trying to use the numpy version that you have installed:
  your installation is broken - please reinstall numpy.
- If you have already reinstalled and that did not fix the problem, then:
  1. Check that you are using the Python you expect (you're using D:\Anaconda\envs\py2\python.exe),
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy versions 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

     Note: this error has many possible causes, so please don't comment on
     an existing issue about this - open a new one instead.

解决方法:

这种问题一般是由于环境变量的配置问题导致程序在引用模块的时候发生了错误。

添加下面三个环境变量即可解决:

导入Anaconda中的第三方库运行时报错怎么办

关于导入Anaconda中的第三方库运行时报错怎么办就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。


本文名称:导入Anaconda中的第三方库运行时报错怎么办
文章URL:http://scyingshan.cn/article/jhgpso.html