PS C:\WINDOWS\system32> python
Python 3.7.0a2 (v3.7.0a2:f7ac4fe, Oct 17 2017, 17:06:29) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import sys
>>> import numpy
PS C:\WINDOWS\system32> python
Python 3.7.0a2 (v3.7.0a2:f7ac4fe, Oct 17 2017, 17:06:29) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
PS C:\WINDOWS\system32>
我不能导入提到的模块,但它不会给出任何错误以及。即使在小程序中,如果我导入这3个程序中的任何一个,程序也会结束而不做任何事情。你知道吗
我只安装了一个Python。没有其他的verison。你知道吗
更新:
PS C:\WINDOWS\system32> pip freeze
boto==2.49.0
boto3==1.9.115
botocore==1.12.115
bz2file==0.98
certifi==2019.3.9
chardet==3.0.4
docutils==0.14
gensim==3.7.1
idna==2.8
jmespath==0.9.4
nltk==3.4
numpy==1.16.2
python-dateutil==2.8.0
requests==2.21.0
s3transfer==0.2.0
scipy==1.2.1
singledispatch==3.4.0.3
six==1.12.0
smart-open==1.8.0
urllib3==1.24.1
PS C:\WINDOWS\system32> python
Python 3.7.0a2 (v3.7.0a2:f7ac4fe, Oct 17 2017, 17:06:29) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print(numpy.__version__)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'numpy' is not defined
>>> exit()
PS C:\WINDOWS\system32>
也许我读错了您所提供的内容,但是按照您所提供的方式,在访问numpy之前,您没有在Python会话中执行任何“import numpy”。版本。请确认。你知道吗
相关问题 更多 >
编程相关推荐