When I type "python" into a terminal, I get this:
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
I am unsure whether this means Ananconda has been successfully installed?
To install the Anaconda-1.9.0-MacOSX-x86_64.sh, open Terminal and run
/bin/bash Anaconda-1.9.0-MacOSX-x86_64.sh
The installer will ask a series of questions and install it in a prefix you determine. When you are done, close the Terminal and open it again. (This is so that your Terminal picks up the new PATH which points to the prefix/bin.)
When it is installed you should see something like the following in the Terminal:
$ python
Python 2.7.6 |Anaconda 1.8.0 (x86_64)| (default, Nov 11 2013, 10:49:09)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Related
It's very strange. I have Python3.10.3 in an activated conda environment:
python
gives
Python 3.10.4 (main, Mar 31 2022, 03:38:35) [Clang 12.0.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
I can install packages but then the version of the Python in the environment changes to 3.9.12 ? Example:
python
gives
Python 3.9.12 (main, Apr 5 2022, 01:53:17)
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
Typically, I want to install pytorch and following the installation, I'll have the downgraded version of Python available if I run "python".
Before installing anaconda, I have my own python configurations:
$ python
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
...
After installing anaconda, however, without creating a new environment, my default environment is still changed:
$ python
Python 3.7.0 (default, Jun 28 2018, 13:15:42)
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
...
How could I use my own 3.5.2 python environment when not activating the anaconda python environment ?
I'm on Mac 10.8.5
I tried to locate os.py with python3 from Terminal:
$ python3
Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.__file__
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/os.py'
>>>
But when I try to locate it in Mac with Finder and Copy the full path I get this:
/Applications/Adobe After Effects CC/Plug-ins/MAXON CINEWARE AE/(CINEWARE Support)/bin/resource/modules/python/res/Python.osx.framework/lib/python2.6
I must have did something wrong with other programs in the past...
How can I solve this and put python3 in the correct path, so out from After Effects ?
Ths for your help.
I am trying to use python 3.4 in my django 1.9 app because python 3.5 is to new and doesn't work with packages that I need. I tried this
virtualenv -p /usr/bin/python3.4 venv
from here
but when Itried that i got this error message
The executable /usr/bin/python3.4 (from --python=/usr/bin/python3.4) does not exist
How canI make this work? thanks
I want to eventually push this to heroku server
EDIT
if I type
apples-MBP:myheroku ray$ python3
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
if i type python34
apples-MBP:myheroku ray$ python34
-bash: python34: command not found
if I just type python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
I have installed cassandra 3.0.0 and trying to connect to connect cqlsh. when i try to hit ./bin/cqlsh from the dir of installed cassandra I am getting
python not found. I am using ubunut14.04LTS
when i type python2 in my terminal it says
python2
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
when i type python3 in my terminal it says
python3
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
so this mean it is already installed . But yes when i type
python in terminal it says
python
The program 'python' is currently not installed. You can install it by typing:
apt-get install python-minimal
even when i install python-minimal it doesn work.
please suggest..
Create a symbolic link /usr/bin/python pointing to either /usr/bin/python2 or /usr/bin/python3