使用numpy模块报错
0
Python已经安装了numpy模块,但导入的时候报错,难道跟安装的路径有关?
>pip show numpy
---
Metadata-Version: 2.0
Name: numpy
Version: 1.12.0b1+mkl
Summary: NumPy: array processing for numbers, strings, records, and objects.
Home-page: http://www.numpy.org
Author: NumPy Developers
Author-email: numpy-discussion@scipy.org
Installer: pip
License: BSD
Location: c:\anaconda3\lib\site-packages
Requires:
Classifiers:
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved
Programming Language :: C
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development
Topic :: Scientific/Engineering
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
Type "copyright", "credits" or "license()" for more information.
>>> import numpy
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import numpy
ImportError: No module named 'numpy'
>>> pip show numpy
SyntaxError: invalid syntax
>>> import pandas
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import pandas
ImportError: No module named 'pandas'
报错信息
>pip show numpy
---
Metadata-Version: 2.0
Name: numpy
Version: 1.12.0b1+mkl
Summary: NumPy: array processing for numbers, strings, records, and objects.
Home-page: http://www.numpy.org
Author: NumPy Developers
Author-email: numpy-discussion@scipy.org
Installer: pip
License: BSD
Location: c:\anaconda3\lib\site-packages
Requires:
Classifiers:
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved
Programming Language :: C
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development
Topic :: Scientific/Engineering
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
Type "copyright", "credits" or "license()" for more information.
>>> import numpy
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import numpy
ImportError: No module named 'numpy'
>>> pip show numpy
SyntaxError: invalid syntax
>>> import pandas
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import pandas
ImportError: No module named 'pandas'
报错信息
没有找到相关结果
重要提示:提问者不能发表回复,可以通过评论与回答者沟通,沟通后可以通过编辑功能完善问题描述,以便后续其他人能够更容易理解问题.
0 个回复