无法导入python模块?

时间:2018-12-05 03:54:12

标签: python import module

我正在尝试使用Scrapy.org的小东西,但安装后似乎无法导入。 Command Prompt

我在做什么错了?

错误代码:

C:\Users\Hentaiware\Desktop>pip show scrapy
Name: Scrapy
Version: 1.5.1
Summary: A high-level Web Crawling and Web Scraping framework
Home-page: https://scrapy.org
Author: Scrapy developers
Author-email: None
License: BSD
Location: c:\users\hentaiware\appdata\local\programs\python\python36\lib\site-packages
Requires: parsel, six, w3lib, queuelib, Twisted, PyDispatcher, lxml, cssselect, pyOpenSSL, service-identity
Required-by:
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\Hentaiware\Desktop>python idek.py
Traceback (most recent call last):
  File "idek.py", line 2, in <module>
    import scrapy
ImportError: No module named scrapy

C:\Users\Hentaiware\Desktop>

其中python:

C:\Users\Hentaiware>where python
C:\Program Files\Emscripten\python\2.7.5.3_64bit\python.exe
C:\Users\Hentaiware\AppData\Local\Programs\Python\Python36\python.exe
C:\Python\python.exe
C:\Users\Hentaiware\AppData\Local\Programs\Python\Python37-32\python.exe
C:\Users\Hentaiware\AppData\Local\Programs\Python\Python36-32\python.exe

0 个答案:

没有答案