Install Python In Cygwin

Active2 years, 2 months ago

The Python Package Index (PyPI) is a repository of software for the Python programming language. PyPI helps you find and install software developed and shared by the Python community. The solution is to stick to using Windows Python in Windows terminal emulators (ie the cmd terminal emulator, which is the same one as you get if you start Windows Python from the Start Menu or similar), and to install Cygwin Python and use that from Cygwin terminal emulators.

I tried to enable curl on cygwin but it says bash: curl: command not found

How do I install curl on cygwin?

Drew LeSueurDrew LeSueur
7,34823 gold badges75 silver badges92 bronze badges
Install Python In Cygwin

17 Answers

In the Cygwin package manager, click on curl from within the 'net' category. Yes, it's that simple.

HDave
13.1k23 gold badges124 silver badges213 bronze badges
Jörg W MittagJörg W Mittag
302k64 gold badges372 silver badges569 bronze badges

I just encountered this.

1) Find the cygwin setup.exe file from http://cygwin.com/ and run it.
2) Click/enter preferences until you reach the 'Select Packages' window. (See image)
3) Click (+) for Net
4) Click the entry for curl. (Make sure you select the checkbox for the Binary)
5) Install.
6) Open a cygwin window and type curl.exe (should be available now).

farheen
1,2511 gold badge13 silver badges22 bronze badges
ibaralfibaralf
9,6823 gold badges33 silver badges48 bronze badges

in cygwin

now you can

For more, see the official github repository of apt-cyg.

Yvette Colomb
20.6k16 gold badges72 silver badges115 bronze badges
ZuzELZuzEL
5,9374 gold badges30 silver badges56 bronze badges

apt-cyg is a great installer similar to apt-get to easily install any packages for Cygwin.

Note:apt-cyg should be first installed. You can do this from Windows command line:

Close Windows cmd, and open Cygwin Bash.

sagunmssagunms
5,5034 gold badges34 silver badges38 bronze badges

In order to use the command-line version of curl, you need the curl executable.So, run the Cygwins Setup.exe, and select curl (under Net->curl). That one uses libcurl3, which is located in Libs->libcurl3. But libcurl3 will be pulled in as a dependency if it's not already installed.So, just select Net->curl and you're good to go.

AmyAmy

In order to install any package,we must first find the setup.exe file.I could not locate this file.so i downloaded this file (or you can do a wget).I am on windows64 bit.So ,if you go to https://cygwin.com/install.html ,you can download setup-x86_64.exe file from the install and updates section,move this setup-x86_64.exe to your c:/cygwin64,and then run it from there ( setup-x86_64.exe -q -P curl)

harryy000harryy000

I searched for curl on the cygwin packages part of their home page.

I found this link http://cygwin.com/packages/curl/.But that wasn't helpful because I couldn't download anything

So I searched for the curl-7.20.1-1 cygwin on Google.I found this helpful site mirrors.xmission.com/cygwin/release/curl/

That site had a link to download curl-7.20.1-1.tar.bz2. I unzipped it using 7zip. It unzips it into ./user/bin/ or something so I had to find curl.exe in the local /usr/bin folder and put it into my /bin folder of c:cygwin

Finally I could use cURL!

This drove me crazy. I hope it helps someone!

Drew LeSueurDrew LeSueur
7,34823 gold badges75 silver badges92 bronze badges

I just ran into this.

If you're not seeing curl in the list (see ibaralf's screenshot), then you may have out-of-date cygwin sources. In one of the screens in cygwin's setup.exe wizard, you have the option to 'Install from Internet' or 'Install from Local Directory'. If you have the 'Install from Local Directory' option enabled, then you may not see curl in the list. Switch to 'Install from Internet' and select a mirror and then you should see curl.

idbriiidbrii
7,5742 gold badges41 silver badges84 bronze badges
Baz
32.1k11 gold badges62 silver badges83 bronze badges
quaqua

For future reference:

Cygwin comes with many packages (among them curl, as you found) to install one of them you run the setup.exe program.

Martín Canaval
2,0211 gold badge18 silver badges29 bronze badges
adamseadamse
9,9793 gold badges28 silver badges45 bronze badges

If someone is having problem with finding CURL in the list in setup.exe (Cygwin package manager) then trying downloading 64bit version of this setup. Worked for me.

FazoMFazoM
2,9454 gold badges34 silver badges54 bronze badges

If you don't see a certain package, you can access to a full list of ports (also unnoficials, the packages you see on the web) launching the setup.exe with -k argument with value http://cygwinports.org/ports.gpg (example: C:cygwinsetupsetup-x86.exe -K http://cygwinports.org/ports.gpg).

Doing so, you can choose a lot of extra packages, also extra versions of cURL (compat one).I do that to get Apache, cUrl, php5, php5-curl and some others :)

I don't know if apt-cyg can get those extra packages.

erm3ndaerm3nda

I just copied the folder 'curl-7.43.0' from zip file that I downloaded from curl website curl.haxx.se into cygwin64 folder on drive C:. And then I have used it with prefix curl in cygwin command terminal.

My actual download location from softpedia, I have used Softpedia Mirror (US)

Slobodan StankovićSlobodan Stanković

From the documentation:

Installing and Updating Cygwin for 64-bit versions of Windows

Run setup-x86_64.exe any time you want to update or install a Cygwin package for 64-bit windows. The signature for setup-x86_64.exe can be used to verify the validity of this binary using this public key.

johnnyjohnny
9,37542 gold badges129 silver badges215 bronze badges

On the Windows system where you want to install Cygwin with cURL download and run the Cygwin installer

64-bit: cygwin.com/setup-x86_64.exe32-bit: cygwin.com/setup-x86.exe(if already installed, go to the setup file existed path)

D:cygwinsetup (where the Cygwin is existed)

Click on the setup (setup-x86_64)

Follow the prompts in the Cygwin Setup wizard.

You can leave most settings at their default values. Pay specific attention to the following:

In the Select Your Internet Connectioin screen, select 'Install from Internet'.

In the Choose a download site screen, choose a site from the list, or add your own sites to the list, I have Chosen a: “mirrors.xmission.com”

The Select Packages screen displays a list of all the available packages and lets you select those you want to install. By default, only the packages in the 'Base' category are marked for installation. The 'Base' category does not include tools like cURL. You should select those explicitly.

By default, the packages are grouped by category. Click the View button to toggle to the Full view

Select all the curl packages by clicking the 'Skip' button for each package once. Note how the 'Skip' label changes to show the version number of the selected package.

Install Python 3.5 Cygwin

Click Next through the rest of the wizard. The selected packages are downloaded and installed.

It worked for me and it resolved the issue : bash curl command not found cygwin

sureshsuresh

Installing libcurl-devel worked for me.Run cygwin setup. After you reach the Select package window search for curl, as shown in the screenshot. Select libcurl-devel and install the package.

Arpan GArpan G

Even below will install curl

cd c:cygwin setup.exe -q -P curl

Cygwin Python Command Not Found

user1461939user1461939

Install Python Pip In Cygwin

Not the answer you're looking for? Browse other questions tagged curlcygwin or ask your own question.