Python Forum
VS2017 Enterprise, Python 3.6 Virutal Environment and .whl file installation. pip
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VS2017 Enterprise, Python 3.6 Virutal Environment and .whl file installation. pip
#11
Hi sparkz_alot,
Thanks for your reply.

I downloaded python 3.5 and re-created
the whole virtual environment.

I opened cmd and cd to:

C:\Users\metalray\Downloads\iwt_django\iwt_django\iwt_django\env_iwt\Scripts

I type activate and end up with:

(env_iwt) C:\Users\metalray\Downloads\iwt_django\iwt_django\iwt_django\env_iwt\Sc
ripts>

when I type there:

pip install C:\Users\metalray\Downloads\pymssql-2.1.3-cp35-cp35m-win_amd64.whl

I read:
Fatal error in launcher: Unable to create process using '"'

when I go back one directory with cd.. I end up in:

(env_iwt) C:\Users\metalray\Downloads\iwt_django\iwt_django\iwt_django\env_iwt>pi
p install C:\Users\metalray\Downloads\pymssql-2.1.3-cp35-cp35m-win_amd64.whl

and the error is again: pymssql-2.1.3-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform
Reply
#12
You are using wrong wheel,to take it again.
Why are using 3.5,Python 3.6 and pip installation under Windows.
And part-2 has detailed info about virtual environment.

So can do it cmd(which i do not like to use) cmder is just a lot better.
C:\>cd 1

# Make vir enviroment
C:\1>python -m venv env_iwt

# cd in
C:\1>cd env_iwt

# Activate vir enviroment
C:\1\env_iwt>C:\1\env_iwt\Scripts\activate.bat
(env_iwt) C:\1\env_iwt>

# Start Python
(env_iwt) C:\1\env_iwt>python
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>exit()

(env_iwt) C:\1\env_iwt>python
So this is the python that's is in vir-environment.
You see that i have python in 32-bits version,then i need wheel  which is for 3.6 and 32-bit.
I have a 64-bit OS,but is the Python version that matter.

So then i need this wheel pymssql‑2.1.3‑cp36‑cp36m‑win32.whl,for this vir-environment.
From Gohlke pymssql.
# Check that pip in vir-environment is used.
(env_iwt) C:\1\env_iwt>pip -V
pip 9.0.1 from c:\1\env_iwt\lib\site-packages (python 3.6)

# Install the downloaded wheel
(env_iwt) C:\1\env_iwt>pip install C:\Users\Tom\Downloads\pymssql-2.1.3-cp36-cp36m-win32.whl
Processing c:\users\tom\downloads\pymssql-2.1.3-cp36-cp36m-win32.whl
Installing collected packages: pymssql
Successfully installed pymssql-2.1.3

# Test that it work
(env_iwt) C:\1\env_iwt>python
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymssql
>>> pymssql.__version__
'2.1.3'
>>> exit()
Reply
#13
Awesome. Thanks [b]snippsat[/b] . It works now!
May the force be with you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python installation for old MacOS Yonix 1 499 Sep-21-2023, 03:32 PM
Last Post: menator01
  Installing python packages in a virtual environment Led_Zeppelin 1 775 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 846 Jul-15-2023, 11:32 AM
Last Post: snippsat
  Understanding venv; How do I ensure my python script uses the environment every time? Calab 1 2,290 May-10-2023, 02:13 PM
Last Post: Calab
  Python development environment standenman 3 1,646 May-04-2023, 07:24 PM
Last Post: snippsat
  How to see the date of installation of python modules. newbieAuggie2019 4 1,640 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 966 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  Python Scripting Environment jpotter0 1 1,721 Nov-19-2022, 03:07 PM
Last Post: snippsat
  python installation/running inside singularity container erdemath 2 1,809 Sep-21-2022, 08:13 AM
Last Post: erdemath
Question Python V3.11 Installation Help Danno 2 1,110 Aug-11-2022, 02:30 AM
Last Post: Danno

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020