P
P
ptvalx2020-06-05 09:48:05
Python
ptvalx, 2020-06-05 09:48:05

Spyder does not see the module, but starts via the console. How to connect it directly?

Worth Anaconda Python 3.7. I'm using the Spyder IDE installed with Anaconda. The environment is default, when installing Anaconda, I checked the box to register PATH.

Entered into the console: pip install osm2geojson (I also tried python -m pip install osm2geojson in the script folder). Everything is set. I run the script from the console (python main.py). Everything is working. Running in Spyder - OSError: [WinError 126] The specified module was not found. In the error log, the name of this module hangs at the top. In Spyder, I click on the module name - the C:\ProgramData\Anaconda3\Lib\site-packages\osm2geojson\__init__.py file opens. Connected and installed as written on the site of the module. Connection: import osm2geojson

I tried to place the module folder in the folder with the script - it did not help.
How can I enable this module so that Spyder can see it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question