Pip Install not installing into correct directory?

I can't seem to use sudo pip install correctly so that it installs into the following directory: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ so that I can then...

django-rest-framework + swagger ui: ImportError: No module named rest_framework_swagger

I'm trying to add django-rest-swagger ui to my api, but I'm getting ImportError: No module named rest_framework_swagger even though I've already done pip install django-rest-swagger. I can also...

python pip trouble installing from requirements.txt

I've had great luck with pip in the past, but working at installing some stuff in a venv on is giving me some headaches. I keep getting errors like No distributions at all found for...

How to install cffi package on AWS Beanstalk

This question looks the same as this post, but since there was no answer, I am re-asking here. I have a Django project to be deployed on AWS Beanstalk, which is using a package cffi. When I run eb...

"OSError: [Errno 1] Operation not permitted" when installing Scrapy in OSX 10.11 (El Capitan) (System Integrity Protection)

I'm trying to install Scrapy Python framework in OSX 10.11 (El Capitan) via pip. The installation script downloads the required modules and at some point returns the following error: OSError:...

How to clean up /Library/Python/2.7/site-packages under Mac OS X El Capitan

So I was messing around following all kinds of tutorials telling me to sudo pip install instead of doing it right by using a virtualenv for properly handling what my individual web apps need. The...

Pip uninstall Scrapy with all its dependencies

I had installed Scrapy with pip install scrapy. It also install all its requirement packages Installing collected packages: zope.interface, Twisted, six, cssselect, w3lib, parsel, pycparser, cffi,...

Cant find module Django while deploying on Elastic Beanstalk

I am trying to deploy the backend of this repository https://github.com/LaunchKit/LaunchKit on Elastic Beanstalk. I am very new to Django and I successfully did those two tutorials explaining how...

Python file-based queue that is process-safe

Is there a process safe persistent (disk-based) Python FIFO queue? Could someone provide a simple example with a script that writes a string to the queue, and another that reads...

Error when Installing scrapy from zsh

I had Python Scrapy on my Mac and everything was Ok til I update Bash to Zsh, Now I tried to install it with pip install scrapy but faced with pip install Scrapy Collecting Scrapy Downloading...

"SSL certificate verify failed" using pip to install packages

I am trying to install the Scrapy package (among others) for python using pip. I have tried doing the installation using python 3 and python 2, I have installed/upgraded the setuptools like so: $...

Scrapy in Debian Stretch - ImportError: libssl.so.1.0.0

I am trying to get my Scrapy crawler running again. I have just installed Debian Stretch, 64 bit. Of course I installed python and python-scrapy. I get to the virtualenv (Requirement already...

ssl handshake failure using proxy for scrapy

I'm trying to setup a proxy on a scrapy project. I followed te instructions from this answer: "1-Create a new file called “middlewares.py” and save it in your scrapy project and add the...

ImportError: cannot import name 'dispatcher' for Scrapy

I installed scrapy using pip install scrapy on Windows 10. It shows ImportError: cannot import name 'dispatcher'. I am using Python 3.5. Help would be appreciated. Thank you. Here is the complete...

Python cannot be push to Heroku

I try to deploy a Django app to Heroku and the push get rejected. The result shows that : Push rejected, failed to compile Python app. From the error script, it seems that the model "ConfigParser'...

Still cannot push python mysql project to heroku after pip install mysqlclients

I try to push the Python project (Python 3.7.0) to Heroku. It's a django project with mysql database linked. But it keeps show that the error: ModuleNotFoundError: No module named 'ConfigParser'....

Trouble installing scrapy ("Segmentation fault (core dumped)")

I'm having issues installing scrapy with and without the sudo command. scrapy -V continues to return "command not found." Does anyone recognize this error? I'm using Lubuntu 18.04, Python...

unable to create scrapy project in python

I have tried to create scrapy project after installing scrapy module. Ended up with below error. I have searched for some solution in stackoverflow. But could not find anything. In directory test1...

Scrapy-Splash: Failed to run docker container with scrapinghub/splash:latest as base image

Am building a python Scrapy application which uses some Azure Services and Scrapy-Splash. I tried creating a docker image for my application with scrapinghub/splash:latest as base image in my...

ConnectionAbortedError on gevent using flask-socketio

I'm using Flask with flask-socketio and with gevent, working with Windows. The socket are working good but, when i change the page on the client web, on the terminal appears this gevent...

KeyError: 'collectstatic' When deploying the Django application to pythonanywhere

During the implementation of my Django application on pythonanywhere for the first time I encountered such an error. Previous applications with a very similar structure were able to be implemented...

Spyder 2.2.5 is giving "You should import from qtconsole instead.", ShimWarning

my issue, spyder 2.2.5 stopped running any code. first of all, I have wanted to install ipywidgets but I can't because of python 2.7.6. I updated python 2.7.6 to 2.7.12, then installed ...

Error for import scrapy in Jupyter Notebook

I try to import scrapy in a Jupyter Notebook, but I get. import scrapy ModuleNotFoundError: No module named 'scrapy'. However, in an RStudio Markdown, it...

Push project to Heroku has been rejected if I change Python version

I have a Python Scrapy project on heroku using Python 2. I still can push to Heroku if I have some code update. Now I want to update python version to Python 3. It looks like Heroku support Python...

TensorFlow -- Duplicate plugins for name projector -- Anaconda Prompt

I am trying to run a generic analysis of mnist, as shown below. from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import...

no django file in the site packages

**Traceback (most recent call last): File "manage.py", line 15, in <module> execute_from_command_line(sys.argv) File...

Heroku - can't see application

Edit: Problem solved. i've created a basic app, using python and flask. i've deployed the app to heroku and heroku didn't raise any exceptions or errrors. But when i open my app i getting...

Cannot get Python3 to recognize installed modules

I have scoured across StackOverflow and Google and have not been able to find a solution. I'm currently running the macOS Big Sur beta and I have Python 3.8.5 installed via homebrew. I have pip3...

Install Scrapy on Windows Server 2019, running in a Docker container

I want to install Scrapy on Windows Server 2019, running in a Docker container (please see here and here for the history of my installation). On my local Windows 10 machine I can run my Scrapy...

Using Python2 and scrapy ImportError: cannot import name suppress

Hi am trying to run a scraper on ubuntu/windows machine . I have installed scrapy version- Scrapy 1.8.0 on using python2. I am able create a project, but when I run a scraper this error in...