Closed jalal1 closed 3 years ago
I just tested on Ubuntu with Python 3.9 and this worked fine.
Are you installing it on top of the base Anaconda Distribution installation? That brings lots of packages and conda usually cannot solve, or it takes a long time, or just fails with a conflict. Try a fresh env with:
conda create --name TEST python=3.8 osmnx
@gboeing Thank you for your reply. Unfortunately, I am still trying to fix this issue. @ocefpaf Yes, on top of base Anaconda. I tried that and below is another error. Thank you.
I am using Python 3.7.10. Should I update?
I tried this command:
conda create --name ox python=3.6 osmnx
and it installed the packages.
But when try:
import osmnx
Error:
Python 3.6 is unsupported. Looks like your .condarc
is not properly configured to use conda-forge. Make sure that you have the following lines there:
show_channel_urls: true
channel_priority: strict
channels:
- conda-forge
- defaults
Hello @ocefpaf ,
.condarc was like:
I changed it exactly as what you sent, closed the session and logged in again. Unfortuanlly, the same error. Notice that it starts loading like 30%... and then error message appeared.
Thank you for your help.
If you are trying to install in the Anaconda Distribution then you will hit the same error. See the last paragraph in https://conda-forge.org/docs/user/tipsandtricks.html#how-to-fix-it
Last paragraph is about MPI, and I am not sure I got your point about the relation to the problem above. Thank you.
Last paragraph is about MPI, and I am not sure I got your point about the relation to the problem above. Thank you.
On the "how to fix it topic" from the link.
In addition to the channel priority, we recommend always installing your packages inside a new environment instead of the base environment from anaconda/miniconda. Using envs make it easier to debug problems with packages and ensure the stability of your root env.
Closing this b/c it is not something we can fix. It is about the usage of conda-forge with defaults and the Anaconda Distribution.
Issue:
I am facing the below error when try to install osmnx following the instructions here: https://osmnx.readthedocs.io/en/stable/
I removed anaconda and install it again, but still the same error:
(base) [jalalk2@blue ~]$ conda --version conda 4.10.3 (base) [jalalk2@blue ~]$ conda config --prepend channels conda-forge Warning: 'conda-forge' already in 'channels' list, moving to the top (base) [jalalk2@blue ~]$ conda create -n ox --strict-channel-priority osmnx Collecting package metadata (current_repodata.json): done Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: \ Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed
UnsatisfiableError: Note that strict channel priority may have removed packages required for satisfiability.
Thank you.
Environment (
conda list
):Details about
conda
and system (conda info
):