How to install gensim from anaconda prompt?

26,290

Solution 1

As per the documentation https://anaconda.org/anaconda/gensim

install it by

conda install -c anaconda gensim 

It might take a while to solving the environment

Solution 2

I usually in stall gensim using pip on anaconda prompt using the following command

pip install -U gensim

or simply

pip install gensim

as shown in the anaconda documentation.

Solution 3

My solution is for Windows 10, Anaconda. Where I want to use gensim with Spyder.

Solution: Use Anaconda Navigator, and install package from there: Open Anaconda Navigator -> Environments (base) -> not installed (packages) -> (search for) gensim -> check the gensim option from the drop down list-> Press apply button -> (wait for a while, it will search other dependencies, then press the button one more time to install required package)

Scree shot of Anaconda Navigator

History: On anaconda command prompt, using conda command, I installed gensim. Every thing looks perfect but it was even not imported, "import gensim", in command prompt.

Bonus: Same is true for tensorflow

Solution 4

You need to go through the conda-forge channel. Try running

conda install -c conda-forge gensim
Share:
26,290
Hardik Bapna
Author by

Hardik Bapna

Updated on July 09, 2022

Comments

  • Hardik Bapna
    Hardik Bapna almost 2 years

    When I put the following command in anaconda prompt

    conda install -c anaconda gensim
    

    Python stops working and shows the following error message:

    enter image description here

    How do I deal with this problem?

  • Adam_G
    Adam_G over 3 years
    I get the message Solving environment: failed with initial frozen solve. Retrying with flexible solve. but the "flexible slve" also doesn't work.
  • Alex Shroyer
    Alex Shroyer about 2 years
    Same issue as Adam_G for me. Attempting to install from any channel (including the recommended -c anaconda fails with the same error: PackagesNotFoundError: The following packages are not available from current channels: - gensim
  • Ririn
    Ririn almost 2 years
    I already install pip install -U gensim in anaconda prompt and success. But when I try to import gensim to jupyter notebook then ModuleNotFoundError: No module named 'gensim'
  • Samuel Nde
    Samuel Nde almost 2 years
    @DilaAzuri Could you confirm that you installed it in the same environment that you are currently running your jupyter notebook. You can quickly check this by running !pip install gensim to see if you get Requirement already satisfied: gensim in ... message.