无法导入python模块?

2024-10-03 02:35:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用Scrapy.org的Scrapy thingy,但我似乎无法在安装后导入它。 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

Tags: piporgyouwebversionlocalexeusers