[Distutils] installing package - problems

Ionel Cristian Mărieș contact at ionelmc.ro
Wed Apr 8 16:39:07 CEST 2015


Yes, that's what worked for me. If you feel adventurous you can try Victor
Stinner's SDK-only approach (mentioned at the end).


Thanks,
-- Ionel Cristian Mărieș, http://blog.ionelmc.ro

On Wed, Apr 8, 2015 at 5:36 PM, Leung, Edward <Edward_Leung at invesco.com>
wrote:

>  Thanks…..so for the 64bit, I will need to install BOTH Visual C++ 2020
> Express and Windows SDK for Visual Studio 2010??
>
>
>
> edward
>
>
>
> *From:* Ionel Cristian Mărieș [mailto:contact at ionelmc.ro]
> *Sent:* Wednesday, April 08, 2015 10:30 AM
> *To:* Leung, Edward
> *Cc:* distutils-sig at python.org; D'Amore, Robert M.; Waisburd, Andrew;
> Bithoney, Anthony S
> *Subject:* Re: [Distutils] installing package - problems
>
>
>
> Hello,
>
> It looks like you need to install the compiler. If you want to install it,
> I have a guide for that here
> <http://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/#for-python-3-4>
> (well, what worked for me - you might need additional stuff for pysftp).
> Give it a try.
>
>
>
> Thanks,
> -- Ionel Cristian Mărieș, http://blog.ionelmc.ro
>
>
>
> On Wed, Apr 8, 2015 at 4:29 PM, Leung, Edward <Edward_Leung at invesco.com>
> wrote:
>
> Dear Sir/Madam,
>
>
>
> I was trying to install a python package pysftp using the following at
> command prompt: python –m pip install pysftp and I got the following error.
> Could you tell me what is not working?? Thanks.
>
>
>
>
>
>     copying lib\Crypto\Random\Fortuna\FortunaGenerator.py ->
> build\lib.win-amd64
>
> -3.4\Crypto\Random\Fortuna
>
>
>
>     copying lib\Crypto\Random\Fortuna\SHAd256.py ->
> build\lib.win-amd64-3.4\Cryp
>
> to\Random\Fortuna
>
>
>
>     copying lib\Crypto\Random\Fortuna\__init__.py ->
> build\lib.win-amd64-3.4\Cry
>
> pto\Random\Fortuna
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\Random\OSRNG
>
>
>
>     copying lib\Crypto\Random\OSRNG\fallback.py ->
> build\lib.win-amd64-3.4\Crypt
>
> o\Random\OSRNG
>
>
>
>     copying lib\Crypto\Random\OSRNG\nt.py ->
> build\lib.win-amd64-3.4\Crypto\Rand
>
> om\OSRNG
>
>
>
>     copying lib\Crypto\Random\OSRNG\posix.py ->
> build\lib.win-amd64-3.4\Crypto\R
>
> andom\OSRNG
>
>
>
>     copying lib\Crypto\Random\OSRNG\rng_base.py ->
> build\lib.win-amd64-3.4\Crypt
>
> o\Random\OSRNG
>
>
>
>     copying lib\Crypto\Random\OSRNG\__init__.py ->
> build\lib.win-amd64-3.4\Crypt
>
> o\Random\OSRNG
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\SelfTest
>
>
>
>     copying lib\Crypto\SelfTest\st_common.py ->
> build\lib.win-amd64-3.4\Crypto\S
>
> elfTest
>
>
>
>     copying lib\Crypto\SelfTest\__init__.py ->
> build\lib.win-amd64-3.4\Crypto\Se
>
> lfTest
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\common.py ->
> build\lib.win-amd64-3.4\Cryp
>
> to\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\test_AES.py ->
> build\lib.win-amd64-3.4\Cr
>
> ypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\test_ARC2.py ->
> build\lib.win-amd64-3.4\C
>
> rypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\test_ARC4.py ->
> build\lib.win-amd64-3.4\C
>
> rypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\test_Blowfish.py ->
> build\lib.win-amd64-3
>
> .4\Crypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\test_CAST.py ->
> build\lib.win-amd64-3.4\C
>
> rypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\test_DES.py ->
> build\lib.win-amd64-3.4\Cr
>
> ypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\test_DES3.py ->
> build\lib.win-amd64-3.4\C
>
> rypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\test_pkcs1_15.py ->
> build\lib.win-amd64-3
>
> .4\Crypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py ->
> build\lib.win-amd64
>
> -3.4\Crypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\test_XOR.py ->
> build\lib.win-amd64-3.4\Cr
>
> ypto\SelfTest\Cipher
>
>
>
>     copying lib\Crypto\SelfTest\Cipher\__init__.py ->
> build\lib.win-amd64-3.4\Cr
>
> ypto\SelfTest\Cipher
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\common.py ->
> build\lib.win-amd64-3.4\Crypto
>
> \SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\test_HMAC.py ->
> build\lib.win-amd64-3.4\Cry
>
> pto\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\test_MD2.py ->
> build\lib.win-amd64-3.4\Cryp
>
> to\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\test_MD4.py ->
> build\lib.win-amd64-3.4\Cryp
>
> to\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\test_MD5.py ->
> build\lib.win-amd64-3.4\Cryp
>
> to\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\test_RIPEMD.py ->
> build\lib.win-amd64-3.4\C
>
> rypto\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\test_SHA.py ->
> build\lib.win-amd64-3.4\Cryp
>
> to\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\test_SHA224.py ->
> build\lib.win-amd64-3.4\C
>
> rypto\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\test_SHA256.py ->
> build\lib.win-amd64-3.4\C
>
> rypto\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\test_SHA384.py ->
> build\lib.win-amd64-3.4\C
>
> rypto\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\test_SHA512.py ->
> build\lib.win-amd64-3.4\C
>
> rypto\SelfTest\Hash
>
>
>
>     copying lib\Crypto\SelfTest\Hash\__init__.py ->
> build\lib.win-amd64-3.4\Cryp
>
> to\SelfTest\Hash
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\SelfTest\Protocol
>
>
>
>   copying lib\Crypto\SelfTest\Protocol\test_AllOrNothing.py ->
> build\lib.win-a
>
> md64-3.4\Crypto\SelfTest\Protocol
>
>
>
>     copying lib\Crypto\SelfTest\Protocol\test_chaffing.py ->
> build\lib.win-amd64
>
> -3.4\Crypto\SelfTest\Protocol
>
>
>
>     copying lib\Crypto\SelfTest\Protocol\test_KDF.py ->
> build\lib.win-amd64-3.4\
>
> Crypto\SelfTest\Protocol
>
>
>
>     copying lib\Crypto\SelfTest\Protocol\test_rfc1751.py ->
> build\lib.win-amd64-
>
> 3.4\Crypto\SelfTest\Protocol
>
>
>
>     copying lib\Crypto\SelfTest\Protocol\__init__.py ->
> build\lib.win-amd64-3.4\
>
> Crypto\SelfTest\Protocol
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\SelfTest\PublicKey
>
>
>
>     copying lib\Crypto\SelfTest\PublicKey\test_DSA.py ->
> build\lib.win-amd64-3.4
>
> \Crypto\SelfTest\PublicKey
>
>
>
>     copying lib\Crypto\SelfTest\PublicKey\test_ElGamal.py ->
> build\lib.win-amd64
>
> -3.4\Crypto\SelfTest\PublicKey
>
>
>
>     copying lib\Crypto\SelfTest\PublicKey\test_importKey.py ->
> build\lib.win-amd
>
> 64-3.4\Crypto\SelfTest\PublicKey
>
>
>
>     copying lib\Crypto\SelfTest\PublicKey\test_RSA.py ->
> build\lib.win-amd64-3.4
>
> \Crypto\SelfTest\PublicKey
>
>
>
>     copying lib\Crypto\SelfTest\PublicKey\__init__.py ->
> build\lib.win-amd64-3.4
>
> \Crypto\SelfTest\PublicKey
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\SelfTest\Random
>
>
>
>     copying lib\Crypto\SelfTest\Random\test_random.py ->
> build\lib.win-amd64-3.4
>
> \Crypto\SelfTest\Random
>
>
>
>     copying lib\Crypto\SelfTest\Random\test_rpoolcompat.py ->
> build\lib.win-amd6
>
> 4-3.4\Crypto\SelfTest\Random
>
>
>
>     copying lib\Crypto\SelfTest\Random\test__UserFriendlyRNG.py ->
> build\lib.win
>
> -amd64-3.4\Crypto\SelfTest\Random
>
>
>
>     copying lib\Crypto\SelfTest\Random\__init__.py ->
> build\lib.win-amd64-3.4\Cr
>
> ypto\SelfTest\Random
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\SelfTest\Random\Fortuna
>
>
>
>     copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaAccumulator.py
> -> bui
>
> ld\lib.win-amd64-3.4\Crypto\SelfTest\Random\Fortuna
>
>
>
>     copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaGenerator.py ->
> build
>
> \lib.win-amd64-3.4\Crypto\SelfTest\Random\Fortuna
>
>
>
>   copying lib\Crypto\SelfTest\Random\Fortuna\test_SHAd256.py ->
> build\lib.win-
>
> amd64-3.4\Crypto\SelfTest\Random\Fortuna
>
>
>
>     copying lib\Crypto\SelfTest\Random\Fortuna\__init__.py ->
> build\lib.win-amd6
>
> 4-3.4\Crypto\SelfTest\Random\Fortuna
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\SelfTest\Random\OSRNG
>
>
>
>     copying lib\Crypto\SelfTest\Random\OSRNG\test_fallback.py ->
> build\lib.win-a
>
> md64-3.4\Crypto\SelfTest\Random\OSRNG
>
>
>
>     copying lib\Crypto\SelfTest\Random\OSRNG\test_generic.py ->
> build\lib.win-am
>
> d64-3.4\Crypto\SelfTest\Random\OSRNG
>
>
>
>     copying lib\Crypto\SelfTest\Random\OSRNG\test_nt.py ->
> build\lib.win-amd64-3
>
> .4\Crypto\SelfTest\Random\OSRNG
>
>
>
>     copying lib\Crypto\SelfTest\Random\OSRNG\test_posix.py ->
> build\lib.win-amd6
>
> 4-3.4\Crypto\SelfTest\Random\OSRNG
>
>
>
>     copying lib\Crypto\SelfTest\Random\OSRNG\test_winrandom.py ->
> build\lib.win-
>
> amd64-3.4\Crypto\SelfTest\Random\OSRNG
>
>
>
>     copying lib\Crypto\SelfTest\Random\OSRNG\__init__.py ->
> build\lib.win-amd64-
>
> 3.4\Crypto\SelfTest\Random\OSRNG
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\SelfTest\Util
>
>
>
>     copying lib\Crypto\SelfTest\Util\test_asn1.py ->
> build\lib.win-amd64-3.4\Cry
>
> pto\SelfTest\Util
>
>
>
>     copying lib\Crypto\SelfTest\Util\test_Counter.py ->
> build\lib.win-amd64-3.4\
>
> Crypto\SelfTest\Util
>
>
>
>    copying lib\Crypto\SelfTest\Util\test_number.py ->
> build\lib.win-amd64-3.4\C
>
> rypto\SelfTest\Util
>
>
>
>     copying lib\Crypto\SelfTest\Util\test_winrandom.py ->
> build\lib.win-amd64-3.
>
> 4\Crypto\SelfTest\Util
>
>
>
>     copying lib\Crypto\SelfTest\Util\__init__.py ->
> build\lib.win-amd64-3.4\Cryp
>
> to\SelfTest\Util
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\SelfTest\Signature
>
>
>
>     copying lib\Crypto\SelfTest\Signature\test_pkcs1_15.py ->
> build\lib.win-amd6
>
> 4-3.4\Crypto\SelfTest\Signature
>
>
>
>     copying lib\Crypto\SelfTest\Signature\test_pkcs1_pss.py ->
> build\lib.win-amd
>
> 64-3.4\Crypto\SelfTest\Signature
>
>
>
>     copying lib\Crypto\SelfTest\Signature\__init__.py ->
> build\lib.win-amd64-3.4
>
> \Crypto\SelfTest\Signature
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\Protocol
>
>
>
>     copying lib\Crypto\Protocol\AllOrNothing.py ->
> build\lib.win-amd64-3.4\Crypt
>
> o\Protocol
>
>
>
>     copying lib\Crypto\Protocol\Chaffing.py ->
> build\lib.win-amd64-3.4\Crypto\Pr
>
> otocol
>
>
>
>     copying lib\Crypto\Protocol\KDF.py ->
> build\lib.win-amd64-3.4\Crypto\Protoco
>
> l
>
>
>
>     copying lib\Crypto\Protocol\__init__.py ->
> build\lib.win-amd64-3.4\Crypto\Pr
>
> otocol
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\PublicKey
>
>
>
>     copying lib\Crypto\PublicKey\DSA.py ->
> build\lib.win-amd64-3.4\Crypto\Public
>
> Key
>
>
>
>     copying lib\Crypto\PublicKey\ElGamal.py ->
> build\lib.win-amd64-3.4\Crypto\Pu
>
> blicKey
>
>
>
>     copying lib\Crypto\PublicKey\pubkey.py ->
> build\lib.win-amd64-3.4\Crypto\Pub
>
> licKey
>
>
>
>     copying lib\Crypto\PublicKey\RSA.py ->
> build\lib.win-amd64-3.4\Crypto\Public
>
> Key
>
>
>
>     copying lib\Crypto\PublicKey\_DSA.py ->
> build\lib.win-amd64-3.4\Crypto\Publi
>
> cKey
>
>
>
>     copying lib\Crypto\PublicKey\_RSA.py ->
> build\lib.win-amd64-3.4\Crypto\Publi
>
> cKey
>
>
>
>     copying lib\Crypto\PublicKey\_slowmath.py ->
> build\lib.win-amd64-3.4\Crypto\
>
> PublicKey
>
>
>
>     copying lib\Crypto\PublicKey\__init__.py ->
> build\lib.win-amd64-3.4\Crypto\P
>
> ublicKey
>
>
>
>     creating build\lib.win-amd64-3.4\Crypto\Signature
>
>
>
>     copying lib\Crypto\Signature\PKCS1_PSS.py ->
> build\lib.win-amd64-3.4\Crypto\
>
> Signature
>
>
>
>     copying lib\Crypto\Signature\PKCS1_v1_5.py ->
> build\lib.win-amd64-3.4\Crypto
>
> \Signature
>
>
>
>     copying lib\Crypto\Signature\__init__.py ->
> build\lib.win-amd64-3.4\Crypto\S
>
> ignature
>
>
>
>     Skipping implicit fixer: buffer
>
>
>
>     Skipping implicit fixer: idioms
>
>
>
>    Skipping implicit fixer: set_literal
>
>
>
>     Skipping implicit fixer: ws_comma
>
>
>
>     running build_ext
>
>
>
>     building 'Crypto.Random.OSRNG.winrandom' extension
>
>
>
>     warning: GMP or MPIR library not found; Not building
> Crypto.PublicKey._fastm
>
> ath.
>
>
>
>     error: Microsoft Visual C++ 10.0 is required (Unable to find
> vcvarsall.bat).
>
>
>
>
>
>     ----------------------------------------
>
>     Command "C:\Python34\python.exe -c "import setuptools,
> tokenize;__file__='C:
>
>
> \\Users\\leunge\\AppData\\Local\\Temp\\pip-build-qwwdy8a4\\pycrypto\\setup.py';e
>
> xec(compile(getattr(tokenize, 'open',
> open)(__file__).read().replace('\r\n', '\n
>
> '), __file__, 'exec'))" install --record
> C:\Users\leunge\AppData\Local\Temp\pip-
>
> tc1xxkzk-record\install-record.txt --single-version-externally-managed
> --compile
>
> " failed with error code 1 in
> C:\Users\leunge\AppData\Local\Temp\pip-build-qwwdy
>
>
>
>
>
>
>
> /***************************/
>
>
>
> Edward Leung, Ph.D.
>
> Quantitative Research Analyst
>
> Invesco Quantitative Strategies
>
> 1166 Ave of the Americas, 27th Floor
>
> New York, NY 10036
>
>
>
> 212-278-9744 (w)
>
> 646-236-1453 (c)
>
> Edward_Leung at invesco.com
>
>
>
> ****************************************************************
> Confidentiality Note: The information contained in this
> message, and any attachments, may contain confidential
> and/or privileged material.  It is intended solely for the
> person(s) or entity to which it is addressed.  Any review,
> retransmission, dissemination, or taking of any action in
> reliance upon this information by persons or entities other
> than the intended recipient(s) is prohibited.  If you received
> this in error, please contact the sender and delete the
> material from any computer.
> ****************************************************************
>
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150408/a47bad95/attachment-0001.html>


More information about the Distutils-SIG mailing list