[PYTHON] Move what you installed with pip to the conda environment

When building a python environment, it may be difficult to understand why it is installed with pip or conda, so I will summarize it.

How to place line-bot-sdk in Anaconda's virtual environment

If you want to install line-bot-sdk in Anaconda's virtual environment but not with the conda command, install it with the pip command.

$ pip3 install line-bot-sdk

Even if I check it with the following command, it is not in the virtual environment of Anaconda.

$ conda list

In my case the result of'pip3 install line-bot-sdk'

$ /Users/username/.pyenv/versions/3.6.5/lib/python3.6/site-packages

I found that there is a line-bot-sdk in the above path. We have to move this to Anaconda's virtual environment.

Next, check the path of the virtual environment.

$ python
>>> import sys
>>> import pprint
>>> pprint.pprint(sys.path)

['',
 '/Users/username/opt/anaconda3/envs/GetUpEarly/lib/python37.zip',
 '/Users/username/opt/anaconda3/envs/GetUpEarly/lib/python3.7',
 '/Users/username/opt/anaconda3/envs/GetUpEarly/lib/python3.7/lib-dynload',
 '/Users/username/opt/anaconda3/envs/GetUpEarly/lib/python3.7/site-packages']

In my case, these five? Was the enabled path. So this time I decided to put the line-bot-sdk file directly under the python3.7 folder.

Finally, make sure that line-bot-sdk is included in the confirmation.

$ pip freeze 

Summary

I'm still groping because I don't know much about environment construction. Please point out if there are any mistakes in this way.

Recommended Posts

Move what you installed with pip to the conda environment
What to do if you can't install with pip in babun environment
[AWS] What to do when you want to pip with Lambda
Can't find the package you installed with pip install --user?
Uninstall everything you installed with pip
Switch the package to be installed for each environment with poetry
What to do if you get a UnicodeDecodeError with pip install
What to do if you get Could not fetch URL 443 with pip
Move the turtle to the place where you click the mouse with turtle in Python
What is the difference between `pip` and` conda`?
What to do if pip cannot be installed
What you want to memorize with the basic "string manipulation" grammar of python
If you want to enter the virtual environment with jupyter, nb_conda_kernels is recommended
What to do if you can't pip install mysqlclient
Restore what was installed with pip3 on another PC
Links to do what you want with Sublime Text
Find out the location of packages installed with pip
What I did to ssh to the VPS Ubuntu environment
Until you install TensorFlow-GPU with pip in Windows environment
I wrote you to watch the signal with Go
Make it easy to install the ROS2 development environment with pip install on Python venv
I tried to analyze the whole novel "Weathering with You" ☔️
read the tag assigned to you on ec2 with boto3
Make a note of what you want to do in the future with Raspberry Pi
Update packages already installed with pip in user environment (non-su)
What you can do with the Python standard library statistics
[Part.2] Crawling with Python! Click the web page to move!
What I did to welcome the Python2 EOL with confidence
Move the environment created with Oracle VM Virutual Box and Cent OS 7 to another computer
What to do if you can't sort files with subscripts
How to get into the python development environment with Vagrant
What to do if you get an Undefined error when trying to use pip with pyenv
[Python] What is pip? Explain the command list and how to use it with actual examples
What to do if pip --user returns an error in a virtual environment created with pyenv
A note on what you did to use Flycheck with Python
Consider what you can do with Python from the Qiita article
[TensorFlow] If you want to run TensorBoard, install it with pip
What to do if you can't build your project with Maven
What to do if you can't use the trash in Lubuntu 18.04.
What to do when you get "I can't see the site !!!!"
Until you build the environment with ABCI and run MaskTrack RCNN
When you want to adjust the axis scale interval with APLpy
What to do with Magics install
Nice to meet you with python
Remove all modules installed with pip
Easy to install pyspark with conda
What to do with PYTHON release?
How to install mysql-connector with pip3
I tried to move the ball
Prepare the development environment with anyenv
Python | What you can do with Python
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
What to do when you get angry that libxml / xmlversion.h does not exist when you put lxml with pip
What skills do I need to program with the FBX SDK Python?
What to do if you can't find well with grep's -f option
What to do if the Pipenv environment is corrupted by updating Homebrew
I wanted to use jupyter notebook with docker in pip environment (opticspy)
How to easily switch the virtual environment created by Conda on Jupyter
[Introduction to machine learning] Until you run the sample code with chainer
Unable to import packages installed in virtual environment with Anaconda on Windows 10
What to do if you get lost in file reference with FileNotFoundError