Trouble with Anaconda installation - anaconda

So I recently installed anaconda on my macOS and now that I'm trying to see if anaconda is working, I see that its not working... I typed
conda list
into terminal and it gives me this message:
:-bash: conda: command not found:
Im not sure exactly what to do, Thanks for the help!

Where's your anaconda installed? can you go to that folder and try it? you should see something like this:
packages in environment at /Users/.../anaconda:
if that doesn't work, can you try the GUI (Anaconda navigator) and see if it loads?

Related

How to install anaconda through home-brew m1 mac

I just got an m1 Mac and installed anaconda using home-brew:
brew install anaconda
It looked like it worked great, except that when I actually go to use anaconda and type "conda" I get the dreaded "conda command not found" error. How do I fix this?
Based on the answer given by #Peter here as well as the anaconda documentation, adding to path is no longer recommended. The answers here also did not solve the problem.
Figured it out! Challenge lay in the home-brew path. To run the conda init zsh command, detailed by #Sebastian in the answer here, I had to specify home-brew, as well as back up a couple directories. The command that actually got it done in terminal was:
~/../../opt/homebrew/anaconda3/bin/conda init zsh
Happy home-brew anaconda-ing on your new m1s everyone.

Fail to install rpy2 from pycharm

To install rpy2 in PyCharm I try with pip install rpy2. However, it returns a syntax error.
When I did this from my Mac, the same happened, but then I went to settings > project interpreter and installed rpy2 from there without problems. However, now that I am working with Windows, I get the following error:
pycparser.plyparser.ParseError: :23:5: before:
blah1
Any ideas on what might be going on and what can I do?
Thanks!
In the end I went to Settings and selected rpy2 as a Project Interpreter. It feels like there should be another, simpler, way to do it. But that is what made it for me.

Python 3.6 USZIPCODE Install

I'm brand new to Python. I've been using Python through Anaconda. I'm running Python 3.6.5. Right now, I'm trying to install a package called USZIPCODE from https://pypi.org/project/zipcodes/. I downloaded the zip file from this site in to my downloads folder. I then tried to use $ pip install uszipcode from the CMD prompt. This doesn't work. "Invalid Syntax" is returned. I've looked at videos on how to use pip to install other packages but they have not been able to solve my problem. The picture below should give some insight in to the issue. Any pointers on how I can install this package into python? Thank you! enter image description here
2 years too late to help bbranham, but for other Anaconda Python beginners having trouble using pip install, use the "Anaconda Powershell Prompt". For instance, on Windows 7:
Hit the windows key and type "Anaconda Powershell Prompt" and select in the search bar to open the Anaconda Powershell cmd prompt.
If you are using different environments make sure to activate your environment with conda activate yourenvname
pip install uszipcode should work out then (to download and install the uszipcode package to your active anaconda environment).

conda not working even though conda is found in site-packages

I encountered a problem with conda while setting up an environment for tensorflow.
I did a whole bunch of conda install and upgrade, updates. After all this, I quite command prompt (Windows 10 OS) and after a few days, return to find that I could not use some conda command such as update, info etc.
I went to look into the site-packages and everything is there so I am puzzled by this strange behavior. I went to uninstall conda and install using pip but that just screwed conda up even more. Now I cannot use conda and I cant get into my environment.
Is there any quick fix or a reinstallation of anaconda is required?
Many thanks in advance!

Anaconda launcher won't open

I downloaded anaconda but when I click on the launcher application it doesn't open. I have tried to update it in terminal but it says command not found. How can I fix this?
In addition to fixing the path issues, as suggested by Thomas.
(Assuming you didn't press yes wen the installer asked if you wanted to prepend the Anaconda install location to your PATH)
It might just help to install the launcher:
>> conda install launcher
Anaconda Navigator stopped working after running TensorFlow script.
I reinstalled a new version of Anaconda. That did not fix the problem.
I followed a advice from:
https://github.com/ContinuumIO/anaconda-issues/issues/910
that did not fix the problem either.
Finally I tried this and it worked:
sudo rm -rf ~/.continuum/
Somehow ~/.continuum/ was owned by root.
In Windows, I used spyder directly from here:
C:\Program Files\Anaconda3\Scripts\spyder.exe
This is good to start coding.
Maybe the permission question, using the iterm run anaconda-navigator, you will get the error message.
If it's the permission question, just rename the permission file.
You should use this command:
python -m pip install jupyter notebook
then
just type:
jupyter notebook
it will work accurately.
I faced the same problem on my mac. Deleted the config.yaml file inside the binstar folder
/Users/<user_name>/Library/Application Support/binstar by using the command
rm -rf config.yaml
and it worked. I could open anaconda navigator.

Resources