Python Forum
How to run utilities from a Python package?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run utilities from a Python package?
#1
I have installed Python 3.9 in a VENV so that I can use the PyQT6 library (my understanding is that PyQT6 cannot be used with Python 3.12, so I used a VENV). I guess this would apply to a regular install of Python as well. The executables for the QT Designer are in a file path that is not in my PATH variable, so when I call it from anywhere but the location of the file, it is not found.

Is it regular/smart practice to put the filepath to utilities like that in my PATH variable (either the system one or the one in the 'activate.bat' file for the VENV)?

I am very new to Python and am not sure about that.

Thanks in advance for the assistance!
--Jim
Reply
#2
venv creates a python virtual environment, which by default isolates your project site packages from system level site packages
it has it's own copy of the python interpreter thus allowing different projects to use different versions of python.

Read PEP405
and also: Creation of virtual environments

Having a virtual environment for each project is a good thing.
I almost never start a project without first creating (and activating) a virtual environment.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python package not seen in VSCode fmccabe80 6 3,240 Mar-06-2023, 10:01 PM
Last Post: fmccabe80
  Math Package in python Uma 1 1,501 Dec-12-2021, 02:01 PM
Last Post: jefsummers
  Python IDE doesn't see opencv-python package on my Jetson Nano sadhaonnisa 1 3,356 Oct-11-2020, 01:04 AM
Last Post: Larz60+
  Help needed for a python package keysson 1 2,229 Sep-02-2020, 03:37 AM
Last Post: Larz60+
  Installing a python package using pip anthonymoss78 0 1,823 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78
  Python package as installable Prabakaran141 0 1,509 Mar-10-2020, 10:07 AM
Last Post: Prabakaran141
  can't install package web in version python 3.7 a21250450 1 2,613 Mar-29-2019, 11:28 AM
Last Post: Larz60+
  Help with understanding a python package pyhill00 4 3,057 Mar-21-2019, 12:42 AM
Last Post: Larz60+
  new python package test ramkrishna 0 1,871 Feb-25-2019, 12:18 PM
Last Post: ramkrishna
  Compiling a Python Package on Windows nagymusic 2 3,641 Jan-29-2019, 12:08 AM
Last Post: nagymusic

Forum Jump:

User Panel Messages

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