deepfakes / faceswap

Deepfakes Software For All
https://www.faceswap.dev
GNU General Public License v3.0
49.94k stars 13.01k forks source link

DeprecationWarning: pkg_resources is deprecated as an API. #1363

Closed BaseMax closed 7 months ago

BaseMax commented 7 months ago
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 7 months ago

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.