- 1 year ago
Cannot install Gensim in Conda env - noarch directory not found
If you're encountering the "noarch directory not found" error while trying to install Gensim in a Conda environment, it might be related to the configuration of the Conda channels. Here are some steps you can try to resolve the issue:
Update Conda: Make sure you have the latest version of Conda installed by running the following command in your terminal or Command Prompt:
csharpconda update -n base conda
Check Conda Channels: Ensure that the Conda channels are configured correctly. You can check the list of channels by running:
luaconda config --show channels
It should include the default channels, such as
conda-forge
anddefaults
.Add Conda Forge Channel: If the
conda-forge
channel is missing, you can add it using the following command:luaconda config --add channels conda-forge
Clear Conda Cache: Sometimes, the Conda cache can cause issues. Try clearing the cache by running:
cssconda clean --all
Create a New Environment: If the above steps don't work, consider creating a new Conda environment and then installing Gensim in the new environment.
luaconda create -n myenv python=3.8
conda activate myenv
conda install -c conda-forge gensim
Use Pip: Alternatively, you can try installing Gensim using Pip within your Conda environment:
conda activate myenv
pip install gensim
By following these steps, you should be able to resolve the "noarch directory not found" error and successfully install Gensim in your Conda environment. Remember to activate your Conda environment before attempting to install packages to ensure that they are installed in the correct environment.