How can I use Scrapy on Anaconda

0

Hello, I'm having trouble creating a project with Scrapy. I'm studying data science in college and I have to use Scrapy. I'm using the Anaconda. First through the Spider IDE (Anaconda Navigator), I am now trying for the same prompt. The problem is to use it even though I can not follow the Scrapy tutorial:

AccordingtothetutorialIshouldusethecommandscrapystartprojecttutorialbutwhenusingIhavethefollowingerror:

(base)C:\Users\wid>scrapystartprojecttutorialTraceback(mostrecentcalllast):File"E:\Anaconda3\Scripts\scrapy-script.py", line 10, in <module>
    sys.exit(execute())
  File "E:\Anaconda3\lib\site-packages\scrapy\cmdline.py", line 149, in execute
    cmd.crawler_process = CrawlerProcess(settings)
  File "E:\Anaconda3\lib\site-packages\scrapy\crawler.py", line 252, in __init__

    log_scrapy_info(self.settings)
  File "E:\Anaconda3\lib\site-packages\scrapy\utils\log.py", line 149, in log_sc
rapy_info
    for name, version in scrapy_components_versions()
  File "E:\Anaconda3\lib\site-packages\scrapy\utils\versions.py", line 35, in sc
rapy_components_versions
    ("pyOpenSSL", _get_openssl_version()),
  File "E:\Anaconda3\lib\site-packages\scrapy\utils\versions.py", line 43, in _g
et_openssl_version
    import OpenSSL
  File "E:\Anaconda3\lib\site-packages\OpenSSL\__init__.py", line 8, in <module>

    from OpenSSL import crypto, SSL
  File "E:\Anaconda3\lib\site-packages\OpenSSL\crypto.py", line 16, in <module>
    from OpenSSL._util import (
  File "E:\Anaconda3\lib\site-packages\OpenSSL\_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "E:\Anaconda3\lib\site-packages\cryptography\hazmat\bindings\openssl\bind
ing.py", line 13, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: DLL load failed: O sistema operacional não pode executar %1.

(base) C:\Users\wid>

I've repeated the code with my Environment enabled and the error is the same ...

I did not find any solution to this problem, and I'm just looking for a way to use Scrapy !! PS: The installation of Scrapy did not give a problem, just in time to use it.

    
asked by anonymous 18.09.2018 / 02:58

1 answer

0

Then you must first run Anaconda Prompt as an administrator , set the cd command to the directory you want to save the project to then create the project by the command scrapy startproject seuproject , I do not know if this is fine, also remembering that you need to have scrapy, you can install it by the Anaconda Libraries IDE

    
18.09.2018 / 23:51