Python Forum
Python/winrt support for python 3.8 version
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python/winrt support for python 3.8 version
#3
There is an Issue rapport here.

There are several way you use 3.7 and don't touch your Python 3.8 installation.
Just install python 3.7 from here,do not add to Environment Variables Path.
Then install with py -3.7 -m pip install winrt.
E:\div_code
λ py -3.7 -m pip install winrt
Collecting winrt
  Downloading winrt-1.0.19128.1-cp37-none-win32.whl (4.6 MB)
     |████████████████████████████████| 4.6 MB 2.2 MB/s
Installing collected packages: winrt
Successfully installed winrt-1.0.19128.1

# Test that it work
E:\div_code
λ py -3.7
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import winrt.windows.foundation as wf
>>> 
>>> u = wf.Uri("https://github.com/")
>>> u.host
'github.com'
I still have Python 3.8 as main version in path,but using py can access all other version.
E:\div_code
λ python -V
Python 3.8.3

E:\div_code
λ pip -V
pip 20.1.1 from c:\python38\lib\site-packages\pip (python 3.8)

Using Anaconda example the smaller version Miniconda
This is a stand alone version that are Python 3.7,so here can just install normal with pip.
Do this from Scripts where pip are.
G:\mini_conda37\Scripts
λ pip -V
pip 20.0.2 from G:\mini_conda37\lib\site-packages\pip (python 3.7)

G:\mini_conda37\Scripts
λ pip install winrt
Collecting winrt
  Downloading winrt-1.0.19128.1-cp37-none-win_amd64.whl (3.9 MB)
     |████████████████████████████████| 3.9 MB 1.3 MB/s
Installing collected packages: winrt
Successfully installed winrt-1.0.19128.1

With conda can also create virtual environment for a specific Python version wanted.
conda create -n myenv python=3.7
Reply


Messages In This Thread
RE: Python/winrt support for python 3.8 version - by snippsat - Jul-08-2020, 02:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Should Python support i suffix for complex numbers as well as j ? stevendaprano 3 1,459 May-21-2022, 08:37 AM
Last Post: stevendaprano
  Is Python Support Graphical User Interface? ankitdixit 4 2,312 Apr-29-2022, 09:26 PM
Last Post: Axel_Erfurt
  Query on choosing Python 3.8.6 version sureshnagarajan 0 1,828 Feb-16-2021, 05:30 AM
Last Post: sureshnagarajan
  Which Python Version? muzikman 15 5,284 Jan-19-2021, 02:16 PM
Last Post: muzikman
  cross-compiling python with zlib support michelebucca 5 5,921 Aug-25-2020, 08:19 PM
Last Post: carterb
  Improved Python support in SonarLint (PyCharm! Eclipse!) ganncamp 0 2,502 Apr-29-2020, 06:25 PM
Last Post: ganncamp
  Issue with 2 version of python (2.6.6 and 2.7) with pip himupant94 2 3,263 Apr-24-2020, 03:23 AM
Last Post: himupant94
  SonarCloud, SonarQube support Python 3.8, add rules for method signature & visibility ganncamp 0 1,774 Mar-31-2020, 04:29 PM
Last Post: ganncamp
  Future of Jython now Python 2 support ended Wattletree 1 2,343 Mar-19-2020, 10:13 PM
Last Post: Larz60+
  How to install the latest version of Python on RHEL 8? devlocalca 7 5,545 Feb-17-2020, 01:49 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

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