Imgur-To-Folder icon indicating copy to clipboard operation
Imgur-To-Folder copied to clipboard

Unable to install python3

Open Popupkiller opened this issue 1 year ago • 2 comments

When trying to install python using setup.py, I get an error I do have write access to the folder in question. I am owner of the whole path.

` MINGW64 ~/Imgur-To-Folder (master) $ python3 setup.py install running install C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\Lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the installation directory:

[Errno 13] Permission denied: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\test-easy-install-17212.write-test'

The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:

C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\Lib\site-packages\

Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable.

For information on other options, you may wish to consult the documentation at:

https://setuptools.pypa.io/en/latest/deprecated/easy_install.html

Please make the appropriate changes for your system and try again. `

Popupkiller avatar Apr 21 '23 08:04 Popupkiller

Hey Popupkiller,

I had this same issue and I was able to get it installed by using python3 setup.py build instead of python3 setup.py install. When I looked further in to the error it states that the install id deprecated and to use build or pip. Hope this helps @Popupkiller

FYI @Doliman100 @santosderek Might want to update the install instructions

C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn(

Thebest257 avatar May 15 '23 05:05 Thebest257

@Popupkiller @Thebest257

Took some time to refactor this repo, and hopefully have fixed above issue 👍

Now using pip for installation for this package, updated readme, and have added minor tests which uses pip to install dependencies.

May experiment with supporting poetry in the future as well; though not sure when.

If on Linux or MacOS, pyenv is also a great way to manage python versions.

santosderek avatar Jun 13 '23 04:06 santosderek