LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2013, 10:28 PM   #1
AsherM
LQ Newbie
 
Registered: Sep 2013
Posts: 4

Rep: Reputation: Disabled
Python3 on Cygwin


How do I set up python 3 on Cygwin on Win 8 platform? I've tried running the set up again but the same version of Python 2 persists.
 
Old 09-13-2013, 11:52 PM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98
Have you tried watching/searching for the where the software was installed and put that in your PATH? I have had the same problem running multiple versions of Python on Linux....

HTH
 
Old 09-14-2013, 01:09 AM   #3
AsherM
LQ Newbie
 
Registered: Sep 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
How do you do that?
 
Old 09-14-2013, 01:27 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
The install package or script should have documentation or a command line option specifyign where it installs the new version of Python. Simply add that to your $PATH environment variable -- in bash, this is done via:

export PATH=/directory/containing/python3:$PATH

If a special lbirary directory is needed, you might need to add it to your $LD_LIBRARY_PATH in a similar fashion.

You might want to read some basic documentation on the bash shell (command interpreter). If you're new to Cygwin and *nix-like environments, it will help you a lot.
 
Old 09-14-2013, 01:52 PM   #5
AsherM
LQ Newbie
 
Registered: Sep 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
I did that but the version of Python when I do 'python -V' is still python 2.
 
Old 09-14-2013, 02:57 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
What happens if you try the "python3" command instead of "python"?
 
Old 09-14-2013, 04:25 PM   #7
AsherM
LQ Newbie
 
Registered: Sep 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
It says that python3 is not a command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Python3 shelve UnicodeDecodeError vmsda Programming 2 05-03-2013 04:32 AM
Installing python3 on SLES 11Readline issues jakegs SUSE / openSUSE 3 01-09-2013 09:52 PM
[SOLVED] Python3.2 vs yum hpfeil Fedora 4 08-01-2012 11:51 AM
[SOLVED] how to run bpython with python3? saavedra29 Slackware 2 03-08-2012 08:36 PM
[SOLVED] python3 - trying to pickle object raises TypeError comp_brad1136 Programming 2 04-06-2011 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration