Closed marnagy closed 3 years ago
Please open the AnacondaPrompt on Windows and ype:
where python
and paste the results here.
Result of where python
:
C:\Users\mnagy\anaconda3\envs\ox\python.exe
C:\Users\mnagy\AppData\Local\Microsoft\WindowsApps\python.exe
You have two python installations, a system one and the one inside the environment. I'm assuming you activate the environment, which seems to be named ox
, with:
conda activate ox
right? If not can you try to activate it first and then importing it?
PS: I usually do not recommend more than 1 python installation to avoid such problems. Do you need the system one? If not I would remove it.
I have activated the enviroment, yes.
The python.exe
file in WindowsApps directory, is empty. After removing it, it shows only one installation, but the error remains.
That is quite odd :-/
I'm not a Windows expert. My only other recommendation is to remove the anaconda distribution and re-try with miniconda. It is usually lighter and works out of the box.
Okay, thank you anyway. I will try miniconda and edit this after. Edit: I tried it with miniconda, but got same result.
I have had issue with conda installation, not OSMNX module. Sorry.
Issue: I am trying installing osmnx module according to documentation on readthedocs. After creating new enviroment,
conda list osmnx
shows installed module osmnx, but if I runpython
and tryimport osmnx
, the response isTraceback (most recent call last): File "", line 1, in
ModuleNotFoundError: No module named 'osmnx'
Also(in python REPL), if I print out all modules (
help()
+modules
), osmnx is NOT there. Sorry for the formatting of outputs below, I am new to markdown. Versions: osmnx 0.16.2 Python 3.9.1 conda 4.9.1 Environment (conda list
):Details about
conda
and system (conda info
):