How To Install Python Packages In Cygwin
The cygcheck command can be used to list the installed packages in Cygwin: $ cygcheck --check-setup OR $ cygcheck -c. Tried with: Cygwin 1.7.22. Installing SciPy, NumPy and matplotlib Under Cygwin. To install pip, you need to have python3-setuptools installed. Then using the easy_install3 pip command you can install pip. After that, you need to have liblapack-devel and libopenblas installed via Cygwin’s package manager (SciPy depends on them). Install the cygwin package, then run easy_install. Turns out the cygwin packages suffix with the version number in case you have python 2 and python 3 installed. – cxw Jun 7 '15 at 15:03. To be precise: In the setup window view 'Full' and in the Search window type python2-setuptools.
I'm on Windows trying to run a Python script. The problem I'm facing is that this script requires Python 2.7. Cygwin is currently installed with the Python 2.6 package. I tried searching for a 2.7 package in the installation wizard but couldn't find any. So I'm kinda stuck. Does anybody have a solution?
Erik Allik4 Answers
Running setup.exe for Cygwin will give you the chance to upgrade Python to 2.7.
If you don't see the 2.7 package, go back and select a different mirror, since not all repositories have all versions available.
slashdottirslashdottirInstall python 2.7 from python.org or EPD, etc. Then put the location of python.exe (default is C:Python27python.exe
) in your Environment Variables (Right click 'Computer' from start menu -> select 'properties' -> Environment Variables
)
and remove python 2.6 from cygwin, before you do all this.
Oz123The problem was that I had downloaded a corrupt package of the source code. I tried it again and it worked fine.
The solution to this problem is to compile the package yourself till its not officially available. I had downloaded a corrupt package of the source code, md5 checksum turned out to be different. I tried it again and it worked fine.
Vihaan VermaVihaan VermaTry my solution here http://charles-blog.appspot.com/2012/09/Upgrade-python-to-2-7-3-in-cygwin
You need to patch it first.
Not the answer you're looking for? Browse other questions tagged pythoncygwin or ask your own question.
I installed the latest version of Cygwin with a number of packages.I soon realised that I need more packages (such as wget
, etc) and I couldn't find a way to install the new packages without running the set up again and reinstall everything from scratch.
What I'm looking for is the equivalent of apt-get on Cygwin (if such a thing exists).
Kazarkmigrated from stackoverflow.comJun 30 '11 at 15:14
This question came from our site for professional and enthusiast programmers.
8 Answers
There is no package management in Cygwin outside of the setup program. The setup only applies updates to your current installation, it does not overwrite packages that what you already have (unless you have explicitly said so).
So rerun the setup program to install new packages.
There is a package called apt-cyg that may be what you are looking for. It appears to be based upon apt-get.
apt-cyg is a command-line installer for Cygwin which cooperates with Cygwin Setup and uses the same repository. The syntax is similar to apt-get.
An example command would be
To install it you need wget, tar, gawk, and bzip2. You can download all these packages from the Cygwin packages list.
random♦Re-run the setup program again. This is how you update Cygwin as well.
Kevin PankoI find Chocolatey very useful for windows installations management (new, upgrade and removal), and cygwin is no exception!
I installed cygwin using Chocolatey, and since Chocolatey is installing using quiet/silent mode, you are not asked to select any packages and cygwin is installed with bare minimum packages :-(.
However, every time you wish to install a new package it is really-really, easy just use: --source=cygwin
.For example, installing bash:
choco install bash --source=cygwin
You need to install 'lynx' at first in a common way.Then open cygwin and write this:
lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin
Now you can use package manager apt-cyg install
For more information see https://github.com/transcode-open/apt-cyg
I was stuck with the same issue while trying to use curl on Windows and just got it resolved. Posting it here, now cause it might help someone.
The best way is to just use cygwin's setup.exe and select additional packages that you need. Go here: http://www.cygwin.com/install.html
'When installing packages for the first time, setup*.exe does not install every package. Only the minimal base packages from the Cygwin distribution are installed by default. Clicking on categories and packages in the setup*.exe package installation screen will provide you with the ability to control what is installed or updated.'
How To Install Python On Linux
You can use Babun which is built around Cygwin and includes the package manager pact
.
Babun supports installing new packages out of the box:
Hi I know that it's old topic but just to add some info:You can also install program called MSYS2 which has the package manager PACMAN from Arch Linux and You are able to install all packs avaible for Arch :)Just pacman -S packageName
and hit enter and it will dl it for You:)
Cheers :D