Cannot Install pycURL in Windows 7 64Bit - python-2.7

I'm trying to install pycurl. I have downloaded the tar.gz file from here:
http://pycurl.sourceforge.net/
I get this error when using easy_install:
AssertionError: please check CURL_DIR in setup.py
I then tried to manually install the pycurl.exe's from this site:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
Every single one of these returned this error:
"Python versions 2.X required, which was not found in the registry."
I'm at a loss. Can't easy_install, can't manually install. How should I install this module? Thanks!

I think you should first download libcurl (I think from here) http://curl.haxx.se/dlwiz/?type=devel&os=Win64
then extract it to some directory (using 7zip)
Then in setup.py set the CURL_DIR parameter (there is comment there on windows users) or use the --curl_dir paramter (see also code there).
hope it will help

2 possibilities:
haven't tried that one, but you can install python either for all users, or just me, with just me being the default. if you changed that to all users, then a few python libs i have seen (comtypes comes to mind) won't see your python install. you can reinstall as just me, or there are a few hacks here on SO.
did you try both 32 and 64 bit python versions? the library version you install has to match the python install, not necessarily the windows install. you can have a 32 bit python installation on a 64 bit OS installation, but if you try to install the 64 bit library on that combination, it won't see python.

Related

Python egg_info error and ImportError

I have been trying to install and run this pokemon go bot: https://github.com/TomTheBotter/Pokemon-Go-Bot-Working-Hack-API
I installed Python 2.7.12 (32 bit since 64 bit didn't work. I have 64 bit windows) and downloaded + upgraded pip to 8.1.2. The 2 Python paths were created on install and seems correct. I think also setuptools was installed with pip or something, at least it's installed now (v25 or something).
When I'm trying to do step 4 of the instructions pip install -r requirements.txt I get this error: http://pastebin.com/EpRwz6B2
Earlier I had another error, but I found out that I needed C++ compiler 10 to fix it. I just hate it when the installation instructions are so bad (It didn't say that C++ compiler 10 was needed).
When I'm on step 7, running the python pokebot.py -i 1 --cache (1 for pokemon club user. Doesn't matter if I do it with or without the --cache text, it's the pokebot.py that doesn't work properly) code returns me with this error:
pastebinDOTcom/y9MUnymh
I have absolutely no idea on how to fix this. Do I need an Android or iOS emulator for this bot to work? Fixing the first error should probably resolve the pokebot.py error. I need all the help I can get

Where can I download the lxml exe file in python on the Windows?

I am using python 2.7 and windows 7 64bit. I want to use scrapy. But It is difficult use this. I referenced this article. But I can't find the lxml installer. In here, it
Download and install lxml-2.3.2.win-amd64-py2.7.‌exe from http://www.lfd.uci.edu/~gohlke/pythonlibs/
But I can't find the exact file in the link. How can I download the file?
If you have pip, you can just call: pip install lxml. (if you want a specific version, you can even request that like so: pip install lxml==2.3.2)
If you do not have pip, please refer to the developer's site on how to build this library, or where to get pre-build versions.
Go to https://pypi.python.org/pypi/lxml/2.3, scroll down to lxml-2.3.win32-py2.7.exe and download/install it.
Direct link: https://pypi.python.org/packages/2.7/l/lxml/lxml-2.3.win32-py2.7.exe#md5=9c02aae672870701377750121f5a6f84
To get 64 bit version use this direct link (link's on the same page as the first link): https://pypi.python.org/packages/2.7/l/lxml/lxml-2.3.win-amd64-py2.7.exe#md5=3db458d2127e68c49d6694d409322d96

How do I open a .whl binary installation file in CMD? Win Py 2.7 Err "No distributions at all found for lxml-3.4.4-cp27-none-win32.whl"

I've been at this for nearly 2 hours and I just can't seem to get my head around it. I am a novice Pythoner, it would appear. I am trying to intsall lxml, (needed to install scrapy). I have tried multiple methods (see my other current quesitons).
Currently I am trying the following.
I downloaded the lxml win 32 file for python 2.7 from this website:
https://pypi.python.org/pypi/lxml/3.4.4#downloads
The LXML Binaries are also available here: "http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml"
I download the .whl file.
I then open up CMD, and CD to my download folder. Once in that folder I run the following command (as per the answer to this question here: How do I install a Python package with a .whl file?)
pip install lxml-3.4.4-cp27-none-win32.whl
This is the output:
C:\Users\Charles\Downloads\python>pip install lxml-3.4.4-cp27-none-win32.whl
Downloading/unpacking lxml-3.4.4-cp27-none-win32.whl
Could not find any downloads that satisfy the requirement lxml-3.4.4-cp27- none
-win32.whl
No distributions at all found for lxml-3.4.4-cp27-none-win32.whl
Storing complete log in C:\Users\Charles\AppData\Roaming\pip\pip.log
Can anyone help me figure out what this means/what is going on? How can I execute this file to install the lxml as needed?
Many thanks!!
Edit: I am using Windows 64 bit, but from this question here: "easy_install lxml on Python 2.7 on Windows" the file I have selected appears to be the correct one.
I am using Windows 64 bit and use Scrapy. It took a while for me to figure out the best way to set up my virtualenv because lxml would not simply pip install.
So I did somethine very similar to what you did but it looks at first glance we may just be using different sites. So try downloading this .whl from HERE. Specifically, for your specifications I believe, grab the one that reads
lxml-3.4.4-cp27-none-win_amd64.whl
and then just cd to the downloads folder and pip install lxml-3.4.4-cp27-none-win_amd64.whl
The first thing you should do is upgrade pip; the latest version is 8.0. Next, you need to install wheel support (this step may be redundant in later versions) and then finally install your wheel:
pip install --upgrade pip
pip install wheel
lxml needs a lot of source-level dependencies, which are difficult to install in Windows. This is why the project provides binary installers for Windows. You can download these from the pypi page for lxml. Make sure you choose the right version for your environment:
lxml-3.4.4.win32-py2.7.exe - for Python 2.7 running on Windows 32-bit
lxml-3.4.4.win32-py3.2.exe - for Python 3.2 running on Windows 32-bit
lxml-3.4.4.win-amd64-py2.7.exe - for Python 2.7, running on Windows 64-bit

Numpy package for "python 2.7.8 and pyscripter 2.5.3" (64 bit windows 7)

I have python 2.7.8 and pyscripter 2.5.3 (64 bits)installed on windows 7....Can anyone tell me which is the numpy package to download for my OS..I went through many sites and installed many numpy and python versions to work on my pyscripter resulting in only wastage of time and getting more confused by uninstalling each..I see that most of the sites give .exe (superpack) files for 32 bit.The same version and all works perfectly with 32 bit windows 8 os.. I saw .whl files for 64 on
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
..I dont know what to do with it... I am stuck with this...
Please help.. and thanks in advance..
I made it installing numpy..All i did was to switch to 32 bit python and pyscripter .I installed python 2.7.9 version as it offers pip command so that installations will be more easy..
In Command prompt I set my path to python 27 and run
pip install numpy
I was shown with the error.."unable to find vcvarsall.bat"
and so I downloaded VCForPython27.msi from http://www.microsoft.com/en-in/download/details.aspx?id=44266
Again run the pip command and numpy will be successfully installed..!
Incase there comes an error "Could not delete multiarray.pyd :Access denied "Just close your pyscripter or probably restart and then run the pip command..Hope this helps someone..

Python 32 or 64 on 64 bit Windows 7? How will this effect installing easy_install?

I wrote some python code on my mac and how I have to transfer it over to a windows computer. This is frustrating beyond words. I installed Python 2.7 x32, then I uninstalled it, then I installed Python 2.7 x64. My python script depends on xlrd and xlwt, and some other downloaded modules. I would like to install those using easy_install or pip or any way that is easy for somebody who doesn't know too much about the really intricate workings of a computer. As of now, if I do this:
C:\Windows\System32> python
I get:
'python' is not recognized as an internal or external command operable program or batch file.
Would someone suggest a next move for me?
I did a bunch of google-ing and stackoverflow-ing and seem to have landed here, I'm not sure how to download something from here. For example, how would I download Pip, and also, which one would I download?
People say that a person should download and install this, how would I do that?
I'm familiar with terminal, what would I type into cmd?
The reason that I things were not going well for me was because I was using a mixture of Python 2.7 (32-bit) and Python 2.7 (64-bit). After more researching I found that even though my Windows 7 was 64 bit, I didn't have to download the 64-bit python. In fact, the 32-bit python was more compatible with other programs. So I clicked around and uninstalled python and everything else that had the name 'Python' in it from my Add/Remove programs menu. This took about 10 minutes. Next, I downloaded the 32-bit Python 2.7. After this, all of the packages that I download, I made sure that they were 32-bit and not 64-bit.
Also, very important, I went to my 'Environment Variables' (google how to get there) and added the directory of where Python27 was installed. To do this you can follow this guide. The last thing that I did was add ;.PY to the end of PATHEXT.