I am trying to install pip packages inside Anaconda without success.
This is what I have tried
1) installation of pip in Anaconda in the base environment
(base) root#eris:/# conda install pip
2) installation of a package, e.g. nano, using pip
(base) root#eris:/# pip install nano
Unfortunately, when I call nano an error message says that nano command was not found.
When I run "conda list", in one output line I get
nano 0.10.0 pypi_0 pypi
This is what I get when I run "which -a pip"
/root/anaconda3/bin/pip
and this is what I get when I run "which -a python"
/root/anaconda3/bin/python
Simon
conda activate environt_name followed by pip install package_name should work and install the package in that specific environment (but only do it for packages that are not in a conda repository and use conda install otherwise).
Unfortunately, when I call nano an error message says that nano command was not found.
Beware that pip install nano will install the nano library from Pypi. From the output of conda list it seems that the library was installed. I have never used this library, but from its description in Pypi it is related to django and it does not seem to come with an executable. Don't confuse it with the nano text editor that comes with most linux distributions (the nano text editor needs to be installed using your distro package manager).
Just installed a package through anaconda (conda install graphviz), but ipython wouldn't find it.
I can see a graphviz folder in C:\Users\username\Anaconda\pkgs
But there's nothing in: C:\Users\username\Anaconda\Lib\site-packages
The graphviz conda package is no Python package. It simply puts the graphviz files into your virtual env's Library/ directory. Look e.g. for dot.exe in the Library/bin/ directory.
To install the graphviz Python package, you can use pip:
conda install pip and pip install graphviz.
Always prefer conda packages if they are available over pip packages. Search for the package you need (conda search pkgxy) and then install it (conda install pkgxy). If it is not available, you can always build your own conda packages or you can try anaconda.org for user-built packages.
Update Nov 25, 2018: There exists now a python-graphviz package at Anaconda.org which contains the Python interface for the graphviz tool. Simply install it with conda install python-graphviz.
(Thanks to wedran and g-kaklam for posting this solution and to endolith for notifying me).
Update May 26, 2022: According to the pygraphviz website, the conda-forge channel should be used: conda install -c conda-forge pygraphviz (thanks to ian-thompson)
On conda:
First install
conda install graphviz
Then the python-library for graphviz python-graphviz
gv_python is a dynamically loaded extension for python that provides
access to the graph facilities of graphviz.
conda install python-graphviz
There is also pydot package, which can parse and dump into DOT language, used by GraphViz
conda install pydot
for me the problem was solved by installing another supportive package.
so I installed graphviz package through anaconda
then I failed to import it
after that I installed a second package named python-graphviz also through anaconda
then I succeeded in importing graphviz module into my code
I hope this will help someone :)
You can actually install both packages at the same time. For me:
conda install -c anaconda graphviz python-graphviz
did the trick.
To install graphviz,
conda install -c anaconda graphviz
pip install graphviz
If conda command not found. Follow these:
export PATH=~/anaconda/bin:$PATH
conda --version # to check your conda version
Difference between conda and pip installation,refer this stackoverflow answer
I have followed the following steps and it worked fine for me.
1 . Download and install graphviz-2.38.msi from
https://graphviz.gitlab.io/_pages/Download/Download_windows.html
2 . Set the path variable
(a) Control Panel > System and Security > System > Advanced System Settings > Environment Variables > Path > Edit
(b) add 'C:\Program Files (x86)\Graphviz2.38\bin'
Graphviz is evidently included in Anaconda so as to be used with pydot or pydot-ng (both of which are included in Anaconda). You may want to consider using one of those instead of the 'graphviz' Python module.
For ubuntu users I recommend this way:
sudo apt-get install -y graphviz libgraphviz-dev
Remeber! If you are using jupyter notebook, please restart it after the installing. That's work for me.
Because the condition before is a static variate as below:
Check if tensorflow is activated in your terminal
first deactivate it using
conda deactivate
then use the command
conda install python-graphviz
and then install
conda install graphviz
this is solution for UBUNTU USERS :) CHEERS :)
This command works officially for python:
conda install -c conda-forge python-graphviz
run this:
conda install python-graphviz
I am using anaconda for the same.
I installed graphviz using conda install graphviz in anaconda prompt.
and then installed pip install graphviz in the same command prompt. It worked for me.
I tried this way and worked for me.
conda install -c anaconda graphviz
pip install graphviz
I have anaconda installed, and I use Anaconda Prompt to install python packages. But I'm unable to install RASA-NLU using conda prompt. Please let me know the command for the same
I have used the below command:
conda install rasa_nlu
Error:
PackagesNotFoundError: The following packages are not available from current channels:
- rasa_nlu
Use pip install rasa_nlu from Anaconda Prompt as mentioned in the documentation
if you are using anaconda prompt, close all your active py files and IDE and run the anaconda cmd as admin. Worked for me, if not install a c compiler
run : apt-get update && apt-get install build-essential
Then pip install rasa_core and nlu
Setup
Conda virtual environment
Coding in a Jupyter notebook
Python version 3.6
I have Googled, searched through the Conda help, github help on this site as wel as found closely relevant questions, that just don't answer mine:
Conda install package from github including requirements.txt
Conda: installing local development package into single conda environment
That first one comes close though.
Basically my question comes down to:
For my code to work i need to import this repo: https://github.com/nicocanali/airtable-python
How can I get this to be used in my Jupyter Notebook?
I'll need to add it to my virtual environment. But how?
I ended up doing the following:
Install git in the virtual environment: (conda install git)
Clone the project. (git clone [URL])
Install the package (cd to package directory that contains setup.py.
Then run "python setup.py install").
Found the answer in the first part in this video: How to Install Python Package from GitHub
To install https://github.com/nicocanali/airtable-python to your jupyter.
Download the .zip of the repo from the github website.
To install it in jupyter enter the following command from the anaconda console.
pip install [path_to_.zip_file_on_pc]
Works on any github file
Found a simple solution here:
https://medium.com/i-want-to-be-the-very-best/installing-packages-from-github-with-conda-commands-ebf10de396f4
For example, to install the package located at
https://github.com/Netflix/metaflow, navigate to your desired environment in the Anaconda prompt, activate the environment, and then execute the following commands:
conda install git
conda install pip
pip install git+git://github.com/Netflix/metaflow.git
(Note that the git package is available in Anaconda Navigator, so can be installed from there instead of from the Anaconda prompt.)
I am having Anaconda3 and Python3.4. But when i run easy_install, packges get installed in Anaconda3\Lib\site-packages and I want to do it for C:\Python34\Lib\site-packages. How to do it?
Open Command prompt
Go to Python34/Scripts
cd C://Python34//Scripts
Install your packages using pip
pip install yourpackegeName