[PYTHON] How to pass the path to the library built with pyenv and virtualenv in PyCharm

The point

Pass the path to the interpreter introduced by pyenv in PyCharm.

environment

OS X -> 10.10.1 (Yosemite) pyenv -> 20141012 pyenv-vertualenv -> 20141012

at first

I want to prepare different libraries and Python versions for each product. In such a case, it seems better to use pyenv and virtualenv. (However, I feel that the scope of pyenv and virtualenv is slightly different from the management of each product such as maven, sbt, bundler ...)

When the environment is built using pyenv and virtualenv, the default Python is read unless the settings are changed to PyCharm, which is the IDE, so the dependency of the library built in the virtual environment cannot be resolved. I've done it like a brain muscle, so don't forget how to make it possible to refer to the path of the dependent library.

Method

procedure

  1. Open PyCharm
  2. Preferences > Project:your_projcet_name > Project Interpreter
  3. /usr/bin/python -> /usr/local/var/lib/pyenv/versions/your_virtual_env_name

Supplement

It depends on the personal environment and virtual environment name.

スクリーンショット 2014-12-27 23.48.24.png

Recommended Posts

How to pass the path to the library built with pyenv and virtualenv in PyCharm
"How to pass PATH" to learn with homebrew
[Beginner memo] How to specify the library reading path in Python
What to do if the user name is changed and the pyenv library path does not pass
How to get the date and time difference in seconds with python
How to use tkinter with python in pyenv
How to deal with pyenv initialization failure in fish 3.1.0
[Note] How to write QR code and description in the same image with python
How to debug the Python standard library in Visual Studio
How to use pyenv and pyenv-virtualenv in your own way
How to manipulate the DOM in an iframe with Selenium
(Note) How to pass the path of your own module
How to get all the keys and values in the dictionary
Notes on how to use marshmallow in the schema library
How to create dataframes and mess with elements in pandas
How to log in to AtCoder with Python and submit automatically
How to use virtualenv with PowerShell
[Python] How to import the library
How to install Anaconda with pyenv
How to pass and study the Python 3 Engineer Certification Basic Exam
How to give and what the constraints option in scipy.optimize.minimize is
How to get the directory where the EXE built with Pyinstaller exists
How to use python put in pyenv on macOS with PyCall
How to display bytes in the same way in Java and Python
[Python Kivy] How to get the file path by dragging and dropping
How to add a package with PyCharm
How to write the correct shebang in Perl, Python and Ruby scripts
How to use Cmder with PyCharm (Windows)
How to work with BigQuery in Python
How to use Anaconda interpreter in PyCharm
When using the zap library in your own Logger with Golang, how to put the hierarchy above Logger in Caller
How to change editor color in PyCharm
How to use is and == in Python
How to query BigQuery with Kubeflow Pipelines and save the result and notes
(Diary 1) How to create, reference, and register data in the SQL database of Microsoft Azure service with python
Function to extract the maximum and minimum values ​​in a slice with Go
How to pass the execution result of a shell command in a list in Python
I want to visualize where and how many people are in the factory
How to get started with the 2020 Python project (windows wsl and mac standardization)
How to count the number of elements in Django and output to a template
How to display in the entire window when setting the background image with tkinter
I'm addicted to the difference in how Flask and Django receive JSON data
The first step to log analysis (how to format and put log data in Pandas)
How to make the font width of jupyter notebook put in pyenv equal width
How to get a list of files in the same directory with python
How to deal with memory leaks in matplotlib.pyplot
[REAPER] How to play with Reascript in Python
How to specify the NIC to scan with amazon-dash
How to generate permutations in Python and C ++
How to use Python Image Library in python3 series
Specify the Python executable to use with virtualenv
How to try the friends-of-friends algorithm with pyfof
How to deal with run-time errors in subprocess.call
How to use the graph drawing library Bokeh
How to pass settings to Item Pipeline in Scrapy
How to get the files in the [Python] folder
How to write async and await in Vue.js
How to Learn Kaldi with the JUST Corpus
How to make Python Interpreter changes in Pycharm
How to plot autocorrelation and partial autocorrelation in python
How to pass args or environment variables with Makefile and make command on #Linux