Jupiter Notebook中的进口刮板错误

时间:2019-05-12 22:52:20

标签: python scrapy

我试图在木星笔记本中导入刮板,但我知道了。

import scrapy

ModuleNotFoundError: No module named 'scrapy'.

但是,在RStudio Markdown中,它可以工作。

library(reticulate)

```{python}

import scrapy

```

```{r}

import("scrapy")

```

有什么主意吗?

模块信息:

C:\Users\X>pip show scrapy
Name: Scrapy
Version: 1.6.0
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\X\appdata\local\programs\python\python37\lib\site-packages
Requires: six, cssselect, PyDispatcher, Twisted, w3lib, queuelib, lxml, service-identity, pyOpenSSL, parsel
Required-by:

这是我的版本:

C:\Users\X>python --version
Python 3.7.0b5

0 个答案:

没有答案