Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows install problem #270

Closed
pythonmobile opened this issue Jul 2, 2013 · 9 comments
Closed

Windows install problem #270

pythonmobile opened this issue Jul 2, 2013 · 9 comments

Comments

@pythonmobile
Copy link

I just installed a fresh copy of python 275 on windows. Then made sure that vcvarsall.bat is in my path for VS 2010. Then installed setuptools and ran:

PS C:\Users\Joe\temp> easy_install Pillow
Searching for Pillow
Reading https://pypi.python.org/simple/Pillow/
Best match: Pillow 2.1.0
Downloading https://pypi.python.org/packages/source/P/Pillow/Pillow-2.1.0.zip#md5=ec630d8ae15d4a3c4ae7b7efdeac8200
Processing Pillow-2.1.0.zip
Writing c:\users\joe1\appdata\local\temp\easy_install-rghrgm\Pillow-2.1.0\setup.cfg
Running Pillow-2.1.0\setup.py -q bdist_egg --dist-dir c:\users\joe
1\appdata\local\temp\easy_install-rghrgm\Pillow-2.
1.0\egg-dist-tmp-imbybe
warning: no previously-included files found matching '.hgignore'
warning: no previously-included files found matching '.hgtags'
warning: no previously-included files found matching 'BUILDME.bat'
warning: no previously-included files found matching 'make-manifest.py'
warning: no previously-included files found matching 'SHIP'
warning: no previously-included files found matching 'SHIP.bat'
warning: no files found matching 'COPYING'
warning: no files found matching '.html' under directory 'docs'
warning: no files found matching '
.css' under directory 'docs'
warning: no files found matching 'README' under directory 'docs'
warning: no files found matching 'CHANGES' under directory 'docs'
warning: no files found matching 'CONTENTS' under directory 'docs'
error: Setup script exited with error: Unable to find vcvarsall.bat

--> How can I get around this problem?

Also, is there a pillow installer (msi/exe) somewhere that includes all the needed files for windows?

Thanks.

@aclark4life
Copy link
Member

Try 2.0.0 or wait for the binaries to be uploaded.

@d-schmidt
Copy link
Contributor

error: Setup script exited with error: Unable to find vcvarsall.bat

Obviously it still can't find the bat file, you've got still an error somewhere.

@aclark4life
Copy link
Member

That error occurs when your development environment is not setup properly. E.g. I have to open a "special" command window (i.e. one that the M$ SDK provides that is pre-configured for you) and enter:

C:\Program Files\Microsoft SDKs\Windows\v7.0>set DISTUTILS_USE_SDK=1
C:\Program Files\Microsoft SDKs\Windows\v7.0>setenv /x64 /release

Then I can compile PIL. In any event, the Pillow 2.1.0 eggs are up now so $ easy_install Pillow should work.

@aclark4life
Copy link
Member

@pythonmobile Can you update/close this please?

@pythonmobile
Copy link
Author

I will redo the commands tomorrow and report. Thanks a lot for the help.

On Wed, Jul 3, 2013 at 8:52 PM, Alex Clark ☺ notifications@git.luolix.topwrote:

@pythonmobile https://github.com/pythonmobile Can you update/close this
please?


Reply to this email directly or view it on GitHubhttps://github.com//issues/270#issuecomment-20453792
.

@s16h
Copy link

s16h commented Aug 7, 2013

I don't know if this is resolved yet or not. But I had a similar experience with pip and the following resolved the matter:

  1. Depending on your version of Visual Studio, there is an environment variable VSxxxCOMNTOOLS (xxx depends on Visual Studio version) with the value leading to ...\Microsoft Visual Studio 11.0\Common7\Tools\
  2. Add an environment value with the name VS90COMNTOOLS and the value %VSxxxCOMNTOOLS% (replace xxx appropriately to match that of part 1)
    This resolved the problem for me.

@aclark4life
Copy link
Member

Good tip, thanks

@Siddique1
Copy link

I did not install MS visual studio, i rather use canopy environment and python 2.7, and facing the same problem of missing vcvarsall.bat.
Any help

@aclark4life
Copy link
Member

@Siddique1 Please see #553

radarhere pushed a commit to radarhere/Pillow that referenced this issue Sep 24, 2023
multibuild now includes build_libjpeg_turbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants