It is installed from pip, but not from conda.Is there a solution?

Asked 2 years ago, Updated 2 years ago, 84 views

Hello :)

I wanted to predict the bitcoin graph using propet. I'm using Windows 10 vs code

I had a hard time installing Python and Python. I installed it as an anaconda. (First introduction) (Python 3.8.8 64-bit (conda))

But I tried to install upbit api (pyupbit) with anaconda

conda install pyupbit

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - - pyupbit

Current channels:

  - - https://repo.anaconda.com/pkgs/main/win-64
  - - https://repo.anaconda.com/pkgs/main/noarch
  - - https://repo.anaconda.com/pkgs/r/win-64
  - - https://repo.anaconda.com/pkgs/r/noarch
  - - https://repo.anaconda.com/pkgs/msys2/win-64
  - - https://repo.anaconda.com/pkgs/msys2/noarch
  - - https://conda.anaconda.org/conda-forge/win-64
  - - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

I installed it with pip because I thought there was a channel that collected packages in Anaconda.

So I installed it on the pip list so that it pops up very well.

ModuleNotFoundError: No module named 'pyupbit'

What an error!

I didn't have this error when I used Vanilla Python as an interpreter before Anaconda.

So I searched hard because I thought I had to install it with conda, but there was no proper way.

I tried installing it as a conda-forge, but the result was the same.

Is there any way to solve it?

Please understand if the beginner's question is too low.

I asked because I was frustrated because I couldn't code for several days.

Thank you for reading :)

python pip anaconda

2022-09-20 16:33

1 Answers

If you ran pip install pyupbit to verify that the installation was made without any error messages and that the package was installed with pip list, it was installed.

If import pyupbit still causes nomoudle error, it is most likely that the running environment of import pyupbit and the environment where pip installed the package are different.

If you installed Anaconda and Vanilla Python together, and you added a path to both of the PATH environment variables, it might have been confused and executed.

I have just confirmed that there is no problem with importing by installing the propet with conda in my test environment (Windows 1064, Anaconda 3).

If you are going to use conda, we recommend creating a conda virtual environment to run and verify commands in the virtual environment.

conda create -n envtest
activate envtest
(envtest) prompt> conda install -c conda-forge propet
(envtest) prompt> pip install pyupbit
(envtest) Prompt> Python
>>> import pyupbit

Check it out like this.


2022-09-20 16:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.