DeprecationWarning: pkg_resources is deprecated as an API.
BaseMax opened this issue · comments
Max Base commented
C:\Users\MAX\Projects\faceswap>python setup.py
C:\Users\MAX\Projects\faceswap\setup.py:18: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import parse_requirements
INFO Running without root/admin privileges
INFO The tool provides tips for installation and installs required python packages
INFO Setup in Windows 11
INFO Installed Python: 3.12.1 64bit
ERROR Please run this script with Python version 3.10 64bit and try again.
I know may I need to downgrade my Python but I don't want to do it.
More details:
C:\Users\MAX\Projects\faceswap>python --version
Python 3.12.1
C:\Users\MAX\Projects\faceswap>pip --version
pip 23.3.2 from C:\Users\MAX\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip (python 3.12)
C:\Users\MAX\Projects\faceswap>where python
C:\Users\MAX\AppData\Local\Microsoft\WindowsApps\python.exe
C:\Users\MAX\Projects\faceswap>where pip
C:\Users\MAX\AppData\Local\Microsoft\WindowsApps\pip.exe
C:\Users\MAX\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts\pip.exe
torzdf commented
This isn't a bug. This is you choosing to install an unsupported version of Python and then complaining when the app won't run in the unsupported version of Python.
Use the installer and/or learn how virtual environments work and you won't have this problem.