Posts

unable to install scrapy windows 64 bit machine

Image
 I was trying to install scrapy in windows 64 bit machine without anaconda / miniconda. Scrapy install guide don't help that much. then I write command :                                                          pip install scrapy  it's end up with twisted installation errors. like :: Running setup.py install for Twisted ... error  ERROR: Command errored out with exit status 1: ... ~~~~~ ~~~~~ .... ..... running build_ext     building 'twisted.test.raiser' extension     error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/     ---------------------------------------- ERROR: Command errored out with exit status 1: 'F:\development\python-projects\scrapyenv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\JAVA_USER\\AppData\\Local\\Temp\\pip-install-_4pqvg1b\\twisted_a5fcbb6d67f64aa7a5d67

cannot be loaded because running scripts is disabled on this system

Image
  I was installing python in my windows 10 machine.  then I create a virtual environment, I can't activate it. When I run, it says :  " .......\Scripts\activate.ps1 cannot be loaded because running scripts is  disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.  "  after google the phase I have come the following solution :  Step 01 : run Windows PowerShell Step 02 : run the following script  "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted" Step 03: press "Y"   When I activate virtual environment it works fine :  check out  link . I found this very helpful.