Cygwin How To Install Python Modules

Posted : admin On 12.09.2021
  • Installing and Updating Cygwin Packages Installing and Updating Cygwin for 64-bit versions of Windows. Run setup-x8664.exe any time you want to update or install a Cygwin package for 64-bit windows. The signature for setup-x8664.exe can be used to verify the validity of this binary. Installing and Updating Cygwin for 32-bit versions of Windows.
  • The simplest way to install Python is to install the Python package right at the beginning of the Cygwin installation. Cygwin lets you choose among supported packages such as Ruby, PHP and Python. Once installed, invoke Python in Cygwin by typing 'python -i' without the quotation marks. Video of the Day.
  • Installing and Updating Cygwin Packages Installing and Updating Cygwin for 64-bit versions of Windows. Run setup-x8664.exe any time you want to update or install a Cygwin package for 64-bit windows. The signature for setup-x8664.exe can be used to verify the validity of this binary. Installing and Updating Cygwin for 32-bit versions of Windows.
  • Docopt creates beautiful command-line interfaces. Video introduction to docopt: PyCon UK 2012: Create.beautiful. command-line interfaces with Python. New in version 0.6.1: Fix issue #85 which caused improper handling of options shortcut if it was present several times.

Question or problem about Python programming:

As of yesterday (Wed 25 July 2012), Python 3.2.3 is included in the standard Cygwin installer. Just run Cygwin’s setup.exe again (download it from cygwin.com again if you need to), and you should be able to select and install it like any other package. This will install as python3, leaving any existing 2.x install in place.

I am a new Python user. I downloaded the latest Anaconda 3 2.4.1 (Python 3.5) from the below link:
https://www.continuum.io/downloads

My PC Configurations are: Windows 10, 64 bit, 4GB RAM

I have spent hours trying to find the right way to download the package after the ‘pip install xgboost’ failed in the Anaconda command prompt but couldn’t find any specific instructions for Anaconda.

Can anyone help on how to install xgboost from Anaconda?

How to solve the problem:

Solution 1:

The easiest way (Worked for me) is to do the following:

You will get a list of install-able features like this:

for example if you want to install the first one on the list mndrake/xgboost (FOR WINDOWS-64bits):

If you’re in a Unix system you can choose any other package with “linux-64” on the right.

  • Update on 22/10/2020:

Without searching in conda list of channels, you can install it using (source: https://anaconda.org/anaconda/py-xgboost) :

Solution 2:

Anaconda’s website addresses this problem here: https://anaconda.org/anaconda/py-xgboost.

This fixed the problem for me with no problems.

Solution 3:

  1. Download package from this website.
    I downloaded xgboost-0.6-cp36-cp36m-win_amd64.whl for anaconda 3 (python 3.6)
  2. Put the package in directory C:
  3. Open anaconda 3 prompt
  4. Type cd C:
  5. Type pip install C:xgboost-0.6-cp36-cp36m-win_amd64.whl
  6. Type conda update scikit-learn

Solution 4:

After trying some things the only thing that worked for me is:

Solution 5:

I was able to install xgboost for Python in Windows yesterday by following this link. But when I tried to import using Anaconda, it failed. I recognized this is due to the fact that Anaconda has a different Python distribution. I then searched again and found this great article which made it!

The trick is after installing successfully for regular Python, to have it work for Anaconda, you just need to pull up the Anaconda prompt and cd into this folder “codexgboostpython-package”, then run:

And voila! The article says you need to add the path, but for me it worked directly. Good luck!

Also copied below the original contents in case the link is not available…


Once the last command completes the build is done. We can now install
the Python module. What follows depends on the Python distribution
you are using. For Anaconda, I will simply use the Anaconda prompt,
and type the following in it (after the prompt, in my case [Anaconda3]
C:UsersIBM_ADMIN>):


We are almost done. Let’s launch a notebook to test XGBoost.
Importing it directly causes an error. In order to avoid it we must
add the path to the g++ runtime libraries to the os environment path
variable with:


We can then import xgboost and run a small example.


We are all set!

Solution 6:

I’m able to install using the following commands (in Windows 10) :

Cygwin How To Install Python Modules In Mac

Solution 7:

if you found an issue when you try to import xgboost (my case it is Windows 10 and anaconda spyder) do the following:

  1. Click on the windows icon (start button!)
  2. Select and expand the anaconda folder
  3. Run the Anaconda Prompt (as Administrator)
  4. Type the following command as it is mentioned in https://anaconda.org/anaconda/py-xgboost

conda install -c anaconda py-xgboost

That’s all…Good luck.

Solution 8:

You can download the xgboost package to your local computer, and you better place the xgboost source file under D: or C: (ps: download address: http://www.lfd.uci.edu/~gohlke/pythonlibs/#xgboost, and select “xgboost-0.6-cp35-cp35m-win_amd64.whl“,but it is up to your operation system), and you open the Anaconda prompt, type in pip install D:xgboost-0.6-cp35-cp35m-win_amd64.whl, then you can successful install xgboost into your anaconda

Solution 9:

GUYS ITS NOT THAT EASY:-
PLEASE FOLLOW BELOW STEP TO GET TO MARK

So here’s what I did to finish a 64-bit build on Windows:

Download and install MinGW-64: sourceforge.net /projects/mingw-w64/

On the first screen of the install prompt make sure you set the Architecture to x86_64 and the Threads to win32
I installed to C:mingw64 (to avoid spaces in the file path) so I added this to my PATH environment variable: C: mingw64 mingw64 bin(Please remove spaces)

I also noticed that the make utility that is included in binmingw64 is called mingw32-make so to simplify things I just renamed this to make

Open a Windows command prompt and type gcc. You should see something like “fatal error: no input file”

Next type make. You should see something like “No targets specified and no makefile found”

Type git. If you don’t have git, install it and add it to your PATH.
These should be all the tools you need to build the xgboost project. To get the source code run these lines:

  • cd c:
  • git clone –recursive https://github.com/dmlc/xgboost
  • cd xgboost
  • git submodule init
  • git submodule update
  • cp make/mingw64.mk config.mk
  • make -j4
    Note that I ran this part from a Cygwin shell. If you are using the Windows command prompt you should be able to change cp to copy and arrive at the same result. However, if the build fails on you for any reason I would recommend trying again using cygwin.

If the build finishes successfully, you should have a file called xgboost.exe located in the project root. To install the Python package, do the following:

  • cd python-package
  • python setup.py install
    Now you should be good to go. Open up Python, and you can import the package with:

  • import xgboost as xgb
    To test the installation, I went ahead and ran the basic_walkthrough.py file that was included in the demo/guide-python folder of the project and didn’t get any errors.

Solution 10:

Try running this on Anaconda prompt

This worked for me on Spyder with Python 3.5

Hope this helps!

This section explains how to install TeraPy on your computer.

Contents

  • Installation

To run TeraPy, you need to install the following software:

  • Python 2.6 or later (tested with 2.6 and 2.7)
  • wxPython 2.8 (tested with 2.8.11 under Windows and Mac OS GTK), it won’t work with wxPython 3.0 at the moment
  • numpy 1.6 or later
  • scipy 0.12 or later
  • wxmpl 2.0.0 (http://csrri.iit.edu/~wxmpl/)
  • quantities

For file output, it is highly recommended (yet optional) to have h5py installed.

Some modules may have other dependencies.

File format filters need:

  • h5py (optional but strongly recommended)
  • xlrd, xlwt and xlutils (optional)

Some post-processing filters also need:

  • statsmodels (optional)
  • pandas (optional)
  • pyWavelets (optional)

And some device drivers need:

  • PyVISA (optional)

Purity vst for mac download. If the packages marked as optional aren’t available, the modules that need them won’t work and won’t appear in the interface. This won’t compromise other modules and functions though.

How to install python on ubuntuInstall

This is the easiest (competing with pip though), and therefore preferred, solution. Open a command line and type

This should fetch the latest version of TeraPy from the Python package index and install it in the right place.

Cygwin How To Install Python Modules

Under Windows (without Cygwin), easy_install is located in <python_folder>Scriptseasy_install.exe, where <python_folder> is something like C:Python2.7. Check where Python is installed on your system.

If this worked, you may proceed to the Configuration section. Otherwise, try the alternatives below or see the Troubleshooting section.

An alternative to easy_install is pip. You can find it here. Once it is installed, open a command line and type

For Windows, an easy to use version can be found here.

If this worked, you may proceed to the Configuration section. Otherwise, try the alternatives below or see the Troubleshooting section.

Download the latest version of TeraPy from the Python package index using this link. Packages for Windows are provided in 32-bit and 64-bit versions.

Download the latest version of TeraPy from the Python package index using this link. Unpack the archive, open a command line and run

Install Modules Python Windows

On some systems, you may need administrator rights to do that, in which case you may try

Modules

How To Install Python On Ubuntu

If this worked, you may proceed to the Configuration section. Otherwise, see the Troubleshooting section.