Installation of vpython (anaconda, mac)

322 views
Skip to first unread message

skinnerj

unread,
Jul 28, 2018, 4:35:20 AM7/28/18
to VPython-users
Hi,

I'd love to use vpython but have never succeeded with installation. I use anaconda on a mac and spyder. I can see that vpython is available for installation on the anaconda website (https://anaconda.org/mwcraig/vpython) but when I try to install in the terminal using the command they list I get the error:

-bash: conda: command not found

I suspect this is a paths issue or something but don't know how to solve it. Can anyone advise?

Thanks,
Jason

Bruce Sherwood

unread,
Jul 28, 2018, 7:27:32 AM7/28/18
to VPython-users
I'm pretty sure that installer is an old experimental one. Instead, see the up to date instructions at vpython.org, including the comments about spyder.

Bruce

Aaron Titus

unread,
Jul 28, 2018, 7:50:15 AM7/28/18
to vpytho...@googlegroups.com
If conda is not found in the terminal then it is a path issue. Or you have not installed anaconda. 

In the terminal type:

  which python 

Does this return the path to Python in the anaconda distribution?

Also try:

  which conda 

It should return the path to conda. 

The path can be edited in the bash profile. Installing anaconda typically changes the path in your bash profile. 

Installing the latest anaconda will probably fix it for you. Then you should be able to install vpython using conda as described at vpython.org

AT

--
You received this message because you are subscribed to the Google Groups "VPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

skinnerj

unread,
Jul 28, 2018, 8:44:48 AM7/28/18
to VPython-users
When typing: 

which python

the terminal returns

/usr/bin/python


To me this path seems incorrect. It should read /usr/anaconda/bin/python but it must be correct because I'm certain there's no other version of python on my computer


'which conda' returns nothing


I'll try the re-install on another computer to avoid messing up current code on this computer. 


Thanks for the assist


Jason

Bruce Sherwood

unread,
Jul 28, 2018, 10:55:00 AM7/28/18
to VPython-users
A version of Python comes with OSX. The significant question rather is what Python does Spyder say you are using. 

Bruce

Bruce Sherwood

unread,
Jul 28, 2018, 11:12:03 AM7/28/18
to VPython-users
I think that Anaconda comes with its own terminal, and you might need to start Spyder from there. But note the issue with Spyder detailed at vpython.org.

Bruce

skinnerj

unread,
Jul 28, 2018, 12:05:15 PM7/28/18
to VPython-users
I'm pleased to report I have it working on my other computer. To do this I uninstalled anaconda (which was running Python2.7), and reinstalled with Python 3. With the re-install the conda installer worked so I was able to easily get vpython and the required older version of spyder. The notes on the homepage were perfect for guiding me through this, thank you! I think I missed them the first time because the collapsed text doesn't have a blue hyperlink.

I may try again on the first mac in the future but for now I'm in the middle of writing a paper and don't want to jeopardise my settings etc.

Jason
Reply all
Reply to author
Forward
0 new messages