ImportError: no module named 'setup'

I use the Google App Engine, and I want to deploy my application to localhost using dev_appserver.py, however, when I do this, it indicates that some file called “bootstrapping.py” is trying to import “setup”, and that no module with this name. I have python3.5 installed. I also have google-cloud-sdk \ bin stored in Path in environment variables. Didn't I install something that I would have?

+6
source share
1 answer

I had the same problem, but I was able to fix it by switching to Python 2.7.

I am using Conda, which has a good guide for creating a Python 2.7 environment, while still being able to easily switch to Python 3.5: http://conda.pydata.org/docs/py2or3.html

If you are not using Conda, I am sure that there is still the opportunity to return to Python 2.7, but I am not sure that this means that you need to get rid of Python 3.5. In any case, immediately switching to 2.7, I immediately fixed my problem.

+4
source

Source: https://habr.com/ru/post/1012454/


All Articles