我试图在木星笔记本中导入刮板,但我知道了。
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