what if conda has no package?

I just installed tensorflow environment with conda.

but problem is conda does not have some packagefor example 'fastai' pip3 only has this package

as you know pip install and conda install has different package directory

so if conda does not have the package what you have to do?

I dont want to move pip package to conda manually....

Topic pip tensorflow anaconda

Category Data Science


Activate your conda environment, then use the pip that will also be in your environment (just like the Python interpreter is that of you activated environment).

For example:

source activate your_tf_env          # now we are in the conda env
which -a pip                         # should list all pip executables

The first pip one should be in your_tf_env somewhere.

Now you can simply install your package, e.g. using pip install fastai, which will use the pip of your environment and the package will also be installed in your environment. You do not need to manually copy the files anywhere.

With your conda env still activated, you can then confirm the package is installed by running:

conda list                     # list all installed packages
conda list | grep fastai       # grep filters results, e.g. for  "fastai"

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.