I want another version package (Python) [duplicate] - python

This question already has an answer here:
How does Python / pip handle conflicting transitive dependencies?
(1 answer)
Closed 1 year ago.
I used discord.py and r6sapi.
But two packages used aiohttp.
discord.py needs aiohttp<3.8.0, >=3.6.0
r6sapi needs aiohttp<3.0.0, >=2.3.3
how to use two packages same time?

if you want to run multiple versions of python on your machine and switch between them, I think the information in the link below might help
https://realpython.com/intro-to-pyenv/

Related

where is the Qt designer app loaded on my system? [duplicate]

This question already has answers here:
Where does pip install its packages?
(8 answers)
Closed last month.
I loaded QtPy5 and QtPy5-tools successfully using pip on VSCode. But I cant for the life of me find it on my system.
Is it an .exe program?
where should I be looking please and what is it called
TIA
you just hold ctrl key and move your cursor on the QtPy5 and then click it it should take you the the file location of the QtPy5. i think this should work.

Automatic Python version compatability checker? [duplicate]

This question already has answers here:
How do I find out all previous versions of python with which my code is compatible
(4 answers)
How to detect minimum version of python that a script required
(2 answers)
Closed 1 year ago.
I am developing a Python package. It occurred to me that as my codebase changes that it would be useful to be able to automatically check what versions of Python are compatible. In general I could see this being a hard problem, but it seems to me like a naive approach that only looks at core syntax (f-formatting of strings, type hints, etc) to give an estimate of the earliest compatible version would still be useful.
Is there an automatic way to do this?
write tests that use your code from the package
Decide what versions of python you to support
set up continuous integration (CI) that runs your tests on the the those versions of python you support.

Wraping my python script as a linux daemon [duplicate]

This question already has answers here:
How to obfuscate Python code effectively? [duplicate]
(22 answers)
How can I make a Python script standalone executable to run without ANY dependency? [duplicate]
(19 answers)
Closed 2 years ago.
I have multiple python files and I want to install them as a service on the client's server.
The problem is that I dont want the client to have access to my code so I need to generate something like exe but for linux and as a service.
I thought about using cython but I wander if there is a easier way to do that. Of course I also have some packages I need to include in this "wrapping"

Which Python version am using on Selenium testing? [duplicate]

This question already has answers here:
Printing Python version in output
(7 answers)
Closed 4 years ago.
I am using Python for my website testing using Selenium, I want to generate the report not able to identify the Python version which I am writing, I am beginner please help out.
For identifying the Python version please write a following script into the Terminal:
$ python --version
If you want to check your Python version into your codebase please write the following script into your project:
import platform
print(platform.python_version())

Platform independence in pip requirement files [duplicate]

This question already has answers here:
Operating-system specific requirements with pip
(2 answers)
Closed 3 years ago.
How can I get platform specific things into a requirements file? Some windows packages are needed instead of their linux counterparts.
WinPExpect vs pexpect
pywin32 isn't needed on linux but is needed by winpexpect
Any idea of how you could deal with that?
I've thought about a small python script that would detect the platform and deal with it by running pip with different platform specific files as well as the "main" requirements file. Seems like maybe it should be simpler.
pip requirements do not allow it.
There is a discusion about this feature in distutils2. See PEP 345 for more metadata information.
More info about distutils2 and metadata: http://packages.python.org/Distutils2/library/distutils2.metadata.html
I don't know the state of PEP 345 and package installers.
Since this comes up first in a stackoverflow search for [python] requirements different platforms allow me to point to this later question's answer and this one's; especially since the distutils2 links in the other answer here are now dead.

Categories