[PYTHON] Precautions when installing packages in the conda environment


Hello everyone. I'm sorry to say that I'm sorry for my personal affairs, but recently I've been busy writing a dissertation. Something goes wrong only when you are busy. This time is a memorandum for dealing with such troubles.

Finally, the task has been completed, so I will summarize it as an article. The contents are memorandums and memos, so please feel free to take a look.

Trouble content

The package did not enter the conda environment. Details below.

I want to add a package to the conda environment. So activate it

(base) source activate hogehoge
(hogehoge) conda install hogehoge

However, it is said that it is not in the conda repository.

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

So I decided to install it with pip reluctantly.

(hogehoge) sudo pip install hogehoge

However, for some reason, the package does not fit in the conda environment.


The cause was that it was executed with superuser privileges. You will be thrown into the base environment. So purely

(hogehoge) pip install hogehoge

Is fine.

This is a reward for the innocent abuse of superuser privileges. This is a terrible mistake, but in the future I would like to be aware of what it means for each command.

If you try to experiment quickly, the basics of linux and code notation will be neglected, so I want to improve my daily self-study so that I can handle various situations.

It's the end. Thank you for visiting.

Recommended Posts

Precautions when installing packages in the conda environment
Precautions when installing fbprophet
Precautions when using pit in Python
Precautions when inheriting the DatasetMixin class
Precautions when installing tensorflow with anaconda
When the node disappears in rqt_graph
When I start the virtual environment of conda, the prompt of bash collapses
[Linux] When the screen is cut off when installing CentOS in VirtualBox
pyenv + pyenv-Automatically load the virtualenv environment in the virtualenv environment
Behavior when returning in the with block
Precautions when pickling a function in python
Commands that were important when building the Laravel environment in the Apache environment (Note)
Precautions when using for statements in pandas
The result of installing python in Anaconda
When the target is Ubuntu 16.04 in Ansible
[AWS] Problem avoidance memo when installing awscli and boto3 in Python 2.7 environment
Notify using Notification Center when the execution environment is macOS in Python
What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment
When the previous graph remains in Seaborn
If the conda environment is strange, let's put it back in mac
Install the package in an offline environment
[Python] Precautions when retrieving data by scraping and putting it in the list
Add PATH when installing Anaconda3 in the terminal Change shell and hide (base)
Use the latest pip in a virtualenv environment
Create a virtual environment with conda in Python
Precautions when dealing with control structures in Python 2.6
Install the python package in an offline environment
Install gensim in conda environment (and also install mecab)
Try installing GeoSpark (Apache Sedona) in Python environment
Set a fixed IP in the Linux environment
When the axis and label overlap in matplotlib
Use pydantic when reading environment variables in Python
When the Spyder integrated environment fails to work
Let's erase the unintended (base) that appears in the terminal [Get out of the Conda environment]
Used from the introduction of Node.js in WSL environment
When the selected object in bpy.context.selected_objects is not returned
The story of building the fastest Linux environment in the world
Initial settings when using the foursquare API in python
Precautions when installing a hierarchical include directory with waf
Precautions when dealing with ROS MultiArray types in Python
[For beginners] Install the package in the Anaconda environment (Janome)
Use the CASA Toolkit in your own Python environment
Embedding in datetime when only the time is known
Simplified Path input when enabling virtual environment in venv
When import matplotlib.pyplot cannot be done in pyenv-virtualenv environment
Completely disable mouse acceleration in the Linux desktop environment
Reflect the virtual environment created by virtualenv or conda in the IntelliJ IDEA (PyCharm) project (memo)