Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

conda equivalent of pip install --user

Tags:

To install to my own directory I can use

pip install --user package 

Alternatively I can use

conda install package

How do I ask conda to install to my home directory since conda does not take a --user flag?

Installing pip packages to $HOME folder

like image 914
user0 Avatar asked Jun 23 '18 21:06

user0


People also ask

Can you do pip install in conda?

You can install pip in the current conda environment with the command conda install pip , as discussed in Using pip in an environment. If there are instances of pip installed both inside and outside the current conda environment, the instance of pip installed inside the current conda environment is used.

Can I use conda instead of pip?

Because Conda introduces a new packaging format, you cannot use pip and Conda interchangeably; pip cannot install the Conda package format. You can use the two tools side by side (by installing pip with conda install pip ) but they do not interoperate either.

What's the difference between pip install and conda install?

The fundamental difference between pip and Conda packaging is what they put in packages. Pip packages are Python libraries like NumPy or matplotlib . Conda packages include Python libraries (NumPy or matplotlib ), C libraries ( libjpeg ), and executables (like C compilers, and even the Python interpreter itself).

Is it safe to use pip in conda environment?

In these cases, using pip only after all other requirements have been installed via conda is the safest practice. Additionally, pip should be run with the “--upgrade-strategy only-if-needed” argument to prevent packages installed via conda from being upgraded unnecessarily.


1 Answers

I don't think it's possible. Use virtual environments (conda create).

like image 128
phd Avatar answered Oct 06 '22 02:10

phd