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
  White Screen Issue with Toolbar After Python Installation evelynfreya 3 1,181 Apr-30-2025, 06:43 AM
Last Post: encore
  I cannot create a virtual environment on visual studio code using python Willem_Aucamp316 2 3,747 Nov-27-2024, 02:20 PM
Last Post: menator01
  Install a module to a specific to Python Installation (one of many)) tester_V 2 2,235 Oct-29-2024, 03:25 PM
Last Post: snippsat
  Shrink Python installation? Extract site-packages from .zip only on demand? pstein 4 1,694 Oct-28-2024, 04:29 PM
Last Post: snippsat
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 2,402 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  Python installation for old MacOS Yonix 1 1,104 Sep-21-2023, 03:32 PM
Last Post: menator01
  Installing python packages in a virtual environment Led_Zeppelin 1 1,662 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 4,753 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 5,065 May-10-2023, 02:13 PM
Last Post: Calab
  Python development environment standenman 3 3,564 May-04-2023, 07:24 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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