Re: Pip Error
On 5/17/2023 10:54 AM, Aysu Mammadli wrote: I encountered an error while attempting to install pip using the terminal. The exact error message I received is: "An error occurred during configuration: option use-feature: invalid choice: '2020-resolver' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')" Here are the steps I followed and the context of my system: Operating System: Windows 11 Python Version: 3.11.3 I executed the command in the terminal to install pip, but it resulted in the aforementioned error message. This error specifically references the '2020-resolver' choice within the 'use-feature' option. An error occurred during configuration: option use-feature: invalid choice: '2020-resolver' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache') I have already attempted the following troubleshooting steps without success: Checked my internet connectivity to ensure it was stable and not causing any issues. Verified that I have the latest version of pip installed, as well as the latest version of Python. Tried using alternative commands, such as using the --upgrade flag or specifying a specific pip version, but the error persists. Looked for any recent system updates or changes that could have caused this issue, but found none. I'm uncertain about the cause of this error and how to resolve it. Any insights or suggestions would be greatly appreciated. Thank you in advance for your assistance! I don't remember needing to install pip with Windows installations. I've got 3.11.3 on Windows 10. The installer and source distro for Windows both come with the ensurepip module: -m ensurepip will install pip, where is the name of the version of Python you want to run. I assume (but don't know for sure) that the standard installer runs ensurepip as part of its work. How (and why) did you try to install it? The error is coming from Lib\site-packages\pip\_internal\cli\parser.py. It's possible that some inconsistency has crept in between the allowed options and the ones that are given to the parser. -- https://mail.python.org/mailman/listinfo/python-list
Re: Pip Error
> On 17 May 2023, at 17:26, Aysu Mammadli wrote: > > I encountered an error while attempting to install pip using the terminal. > The exact error message I received is: > > "An error occurred during configuration: option use-feature: invalid > choice: '2020-resolver' (choose from 'fast-deps', 'truststore', > 'no-binary-enable-wheel-cache')" > > Here are the steps I followed and the context of my system: > > Operating System: Windows 11 Python Version: 3.11.3 I executed the command > in the terminal to install pip, but it resulted in the aforementioned error > message. This error specifically references the '2020-resolver' choice > within the 'use-feature' option. An error occurred during configuration: > option use-feature: invalid choice: '2020-resolver' (choose from > 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache') > > I have already attempted the following troubleshooting steps without > success: > > Checked my internet connectivity to ensure it was stable and not causing > any issues. Verified that I have the latest version of pip installed, as > well as the latest version of Python. Tried using alternative commands, > such as using the --upgrade flag or specifying a specific pip version, but > the error persists. Looked for any recent system updates or changes that > could have caused this issue, but found none. I'm uncertain about the cause > of this error and how to resolve it. Any insights or suggestions would be > greatly appreciated. > > Thank you in advance for your assistance! Pip is installed by default with the python.org kits. I am not sure what the situation is for the app store python. Can you run python it self? Does one of these work for you? py -m pip python -m pip If so you have pip installed. Barry > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
Pip Error
I encountered an error while attempting to install pip using the terminal. The exact error message I received is: "An error occurred during configuration: option use-feature: invalid choice: '2020-resolver' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')" Here are the steps I followed and the context of my system: Operating System: Windows 11 Python Version: 3.11.3 I executed the command in the terminal to install pip, but it resulted in the aforementioned error message. This error specifically references the '2020-resolver' choice within the 'use-feature' option. An error occurred during configuration: option use-feature: invalid choice: '2020-resolver' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache') I have already attempted the following troubleshooting steps without success: Checked my internet connectivity to ensure it was stable and not causing any issues. Verified that I have the latest version of pip installed, as well as the latest version of Python. Tried using alternative commands, such as using the --upgrade flag or specifying a specific pip version, but the error persists. Looked for any recent system updates or changes that could have caused this issue, but found none. I'm uncertain about the cause of this error and how to resolve it. Any insights or suggestions would be greatly appreciated. Thank you in advance for your assistance! -- https://mail.python.org/mailman/listinfo/python-list
Re: FW: pip Error
On 12/11/21 00:35, Sidharth S Nair wrote: Hi, I am NINJAGAMING107 a active python user and lately I have been trying to make my own personal AI assistant but I am not able to make because I am not able to import Speech Recognition and some other more. The error says module not found even though in my folder where I installed python and the packages there is a folder of speech recognition and the rest of the things which I installed. I used Pycharm and VS code for this still not working. If there is any way to fix this please tell me or if I am doing the installation wrong please tell me. Hope that you will reply to ASAP. Rule #1 on module not found errors: it's always a path problem. Unfortunately, on today's systems, there are often many places things can go as you may have several Pythons, several virtualenvs, etc. The basic rule is to install with the Python you're intending to use, that way the paths it's going to look in are the same paths your packages got installed in. In the case of VS Code, you can open a terminal (inside the IDE) and run your pip commands there, and that will be happening in the environment that is defined for your project. In the case of PyCharm, you can click on the Python version in the lower right and click Interpreter Settings, through there you can search for and install packages from PyPi. Either one will give you the option to setup a fresh virtualenv for the project, which you may want to do since you're unsure of the current state. -- https://mail.python.org/mailman/listinfo/python-list
FW: pip Error
Sent from [1]Mail for Windows From: [2]Sidharth S Nair Sent: 11 December 2021 01:00 PM To: [3]python-list@python.org Subject: pip Error Sent from [4]Mail for Windows Hi, I am NINJAGAMING107 a active python user and lately I have been trying to make my own personal AI assistant but I am not able to make because I am not able to import Speech Recognition and some other more. The error says module not found even though in my folder where I installed python and the packages there is a folder of speech recognition and the rest of the things which I installed. I used Pycharm and VS code for this still not working. If there is any way to fix this please tell me or if I am doing the installation wrong please tell me. Hope that you will reply to ASAP. Thank you in advance. NINJAGAMING107 This email has been checked for viruses by Avast antivirus [5]Avast logo software. [6]www.avast.com References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 2. mailto:ninjagaming107ga...@gmail.com 3. mailto:python-list@python.org 4. https://go.microsoft.com/fwlink/?LinkId=550986 5. https://www.avast.com/antivirus 6. https://www.avast.com/antivirus -- https://mail.python.org/mailman/listinfo/python-list
Re: "pip" error message
On 4/21/20 5:38 AM, Frank Millman wrote: > On 2020-04-21 12:02 PM, Simone Bravin wrote: >> >> I found that I had downloaded Python from what I would call "automatic >> check version link" and that downloaded the 32-bit version, but my >> notebook have 64-bit, so I changed the version to the 64-bit one. >> > > I have had the same problem in the past. Most software download pages > seem to detect whether you are running 32 or 64 bit, and default to the > correct download option. > > Python shows a big yellow 'Download the latest version for Windows' > button, which most people will select by default. However, it actually > downloads the 32 bit version, without any indication that this is what > it is doing. > > I could have the details wrong - I am not going to repeat the install > just to check. But this is what I recall from the last time I did this. > > This seems like a good time to bring this up, as in another thread we > are discussing how to improve the download experience on Windows for > newbies. There's a long-running thread on this in, well, more than one place. The experts on the Windows experience in general (i.e. Microsoft folks) maintained for a long time that the 32-bit Python was the correct default - they have usage statistics on a worldwide basis that nobody else could have access to. That stance may have softened a bit but there's been no change to the web page yet. The web page does OS detection, but not bitness-detection, and yes that's intentional but won't go into that here. The 32-bit Python runs just fine on 64-bit Windows, by the way. There shouldn't have been a problem with it. There's also nothing wrong with switching to the 64-bit version if you like - mainly that choice should these be driven by what extra packages are available; for a long time it was more likely that binary wheels were available for 32-bit Python, and I think now that's actually shifting such that some developers may not be uploading the 32-bit wheels any longer. -- https://mail.python.org/mailman/listinfo/python-list
Re: "pip" error message
On 2020-04-21 12:02 PM, Simone Bravin wrote: I found that I had downloaded Python from what I would call "automatic check version link" and that downloaded the 32-bit version, but my notebook have 64-bit, so I changed the version to the 64-bit one. I have had the same problem in the past. Most software download pages seem to detect whether you are running 32 or 64 bit, and default to the correct download option. Python shows a big yellow 'Download the latest version for Windows' button, which most people will select by default. However, it actually downloads the 32 bit version, without any indication that this is what it is doing. I could have the details wrong - I am not going to repeat the install just to check. But this is what I recall from the last time I did this. This seems like a good time to bring this up, as in another thread we are discussing how to improve the download experience on Windows for newbies. Frank Millman -- https://mail.python.org/mailman/listinfo/python-list
Re: "pip" error message
Hi all, First of all thanks to all that answered my question. I had already changed the PATH and tried to upgrade pip version but it was not possible to reach pip in any way, the error that I was getting looked like regarding some program file of pip. Anyway after some trying I was able to fix the problem. I found that I had downloaded Python from what I would call "automatic check version link" and that downloaded the 32-bit version, but my notebook have 64-bit, so I changed the version to the 64-bit one. Pip was reachable but I was getting a problem with it again anyway was an easiest fix as I had to take off the -32 from \Python38-32\ in PATH variables, like this: C:\Users\simon\AppData\Local\Programs\Python\Python38\Scripts Bye On 21/04/2020 04:47, Souvik Dutta wrote: Have you tried updating pip? There was a bug in pip version 10 Souvik flutter dev On Mon, Apr 20, 2020, 10:10 PM Simone Bravin mailto:simone.bra...@outlook.com>> wrote: Hello everyone, > I just started using Python to learn a bit of coding, so I'm pretty a > newbie to this, I tried to install few extra packages using pip but it > doesn't work. > > When I check for pip version using command line> pip --version I get > the following error message: > > Traceback (most recent call last): > File > "c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", > line 193, in _run_module_as_main > return _run_code(code, main_globals, None, > File > "c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", > line 86, in _run_code > exec(code, run_globals) > File > "C:\Users\simon\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe\__main__.py", > line 5, in > File > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\__init__.py", > line 40, in > from pip._internal.cli.autocompletion import autocomplete > File > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\autocompletion.py", > line 8, in > from pip._internal.cli.main_parser import create_main_parser > File > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\main_parser.py", > line 7, in > from pip._internal.cli import cmdoptions > File > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\cmdoptions.py", > line 24, in > from pip._internal.models.search_scope import SearchScope > File > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\models\search_scope.py", > line 11, in > from pip._internal.utils.misc import normalize_path, > redact_password_from_url > File > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\utils\misc.py", > line 31, in > *from pip import __version__ * > *ImportError: cannot import name '__version__' from 'pip' > (c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\__init__.py)* > > I tried to run Repair in Modify Setup and reinstalled python as well > but nothing changed. > > I was wondering if you can help to fix this. > > Thank you > > Simone -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: "pip" error message
Have you tried updating pip? There was a bug in pip version 10 Souvik flutter dev On Mon, Apr 20, 2020, 10:10 PM Simone Bravin wrote: > Hello everyone, > > > I just started using Python to learn a bit of coding, so I'm pretty a > > newbie to this, I tried to install few extra packages using pip but it > > doesn't work. > > > > When I check for pip version using command line> pip --version I get > > the following error message: > > > > Traceback (most recent call last): > > File > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", > > line 193, in _run_module_as_main > > return _run_code(code, main_globals, None, > > File > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", > > line 86, in _run_code > > exec(code, run_globals) > > File > > > "C:\Users\simon\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe\__main__.py", > > > line 5, in > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\__init__.py", > > > line 40, in > > from pip._internal.cli.autocompletion import autocomplete > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\autocompletion.py", > > > line 8, in > > from pip._internal.cli.main_parser import create_main_parser > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\main_parser.py", > > > line 7, in > > from pip._internal.cli import cmdoptions > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\cmdoptions.py", > > > line 24, in > > from pip._internal.models.search_scope import SearchScope > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\models\search_scope.py", > > > line 11, in > > from pip._internal.utils.misc import normalize_path, > > redact_password_from_url > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\utils\misc.py", > > > line 31, in > > *from pip import __version__ * > > *ImportError: cannot import name '__version__' from 'pip' > > > (c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\__init__.py)* > > > > I tried to run Repair in Modify Setup and reinstalled python as well > > but nothing changed. > > > > I was wondering if you can help to fix this. > > > > Thank you > > > > Simone > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
Re: "pip" error message
Hi Simone and all - I'm not sure how to fix/correct... but just a redundant 'me too'. I tried to install pybibframe (https://pypi.org/project/pybibframe/) and also keep getting errors. Wasn't sure if it was the module/package or what. My error is along the lines of: ERROR: Command errored out with exit status 1: command: 'c:\users\rickrigby\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\RickRigby\\AppData\\Local\\Temp\\pip-install-_x4to3h7\\amara3.xml\\setup.py'"'"'; When I 'Google' the error - I find that there's an apparent bug https://stackoverflow.com/questions/60937863/error-command-errored-out-with-exit-status-1 Doesn't sound like there's an easy workaround. Richard On Mon, Apr 20, 2020 at 12:42 PM Simone Bravin wrote: > Hello everyone, > > > I just started using Python to learn a bit of coding, so I'm pretty a > > newbie to this, I tried to install few extra packages using pip but it > > doesn't work. > > > > When I check for pip version using command line> pip --version I get > > the following error message: > > > > Traceback (most recent call last): > > File > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", > > line 193, in _run_module_as_main > > return _run_code(code, main_globals, None, > > File > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", > > line 86, in _run_code > > exec(code, run_globals) > > File > > > "C:\Users\simon\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe\__main__.py", > > > line 5, in > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\__init__.py", > > > line 40, in > > from pip._internal.cli.autocompletion import autocomplete > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\autocompletion.py", > > > line 8, in > > from pip._internal.cli.main_parser import create_main_parser > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\main_parser.py", > > > line 7, in > > from pip._internal.cli import cmdoptions > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\cmdoptions.py", > > > line 24, in > > from pip._internal.models.search_scope import SearchScope > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\models\search_scope.py", > > > line 11, in > > from pip._internal.utils.misc import normalize_path, > > redact_password_from_url > > File > > > "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\utils\misc.py", > > > line 31, in > > *from pip import __version__ * > > *ImportError: cannot import name '__version__' from 'pip' > > > (c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\__init__.py)* > > > > I tried to run Repair in Modify Setup and reinstalled python as well > > but nothing changed. > > > > I was wondering if you can help to fix this. > > > > Thank you > > > > Simone > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
"pip" error message
Hello everyone, I just started using Python to learn a bit of coding, so I'm pretty a newbie to this, I tried to install few extra packages using pip but it doesn't work. When I check for pip version using command line> pip --version I get the following error message: Traceback (most recent call last): File "c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\simon\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe\__main__.py", line 5, in File "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\__init__.py", line 40, in from pip._internal.cli.autocompletion import autocomplete File "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\autocompletion.py", line 8, in from pip._internal.cli.main_parser import create_main_parser File "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\main_parser.py", line 7, in from pip._internal.cli import cmdoptions File "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 24, in from pip._internal.models.search_scope import SearchScope File "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\models\search_scope.py", line 11, in from pip._internal.utils.misc import normalize_path, redact_password_from_url File "c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\utils\misc.py", line 31, in *from pip import __version__ * *ImportError: cannot import name '__version__' from 'pip' (c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\__init__.py)* I tried to run Repair in Modify Setup and reinstalled python as well but nothing changed. I was wondering if you can help to fix this. Thank you Simone -- https://mail.python.org/mailman/listinfo/python-list
Re: Pip error on installing Python 3.5
On Tue, Oct 11, 2016 at 7:07 PM, Steve D'Aprano wrote: > I've just installed Python 3.5 from the source tarball and received an > unexpected error related to pip. On Linux, as a regular user (except for > the last line): > > > wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz > tar xvf Python-3.5.2.tgz > cd Python-3.5.2 > ./configure > make > sudo make altinstall > > > There were no obvious errors until the end: > > The directory '/home/steve/.cache/pip/http' or its parent directory is not > owned by the current user and the cache has been disabled. Please check the > permissions and owner of that directory. If executing pip with sudo, you > may want sudo's -H flag. > > Ignoring indexes: https://pypi.python.org/simple > > The directory '/home/steve/.cache/pip' or its parent directory is not owned > by the current user and caching wheels has been disabled. check the > permissions and owner of that directory. If executing pip with sudo, you > may want sudo's -H flag. > > > > Can anyone explain what is going on, why I should care, and how I should fix > it? Those aren't errors, and pip should be perfectly usable. The message about `/home/steve/.cache/pip` is just because pip is being run via sudo; pip's cache dir is based on $HOME, which is still set to `/home/steve` and pip doesn't want to screw up its cache for the `steve` user. The "Ignoring indexes" message is due to ensurepip explicitly disabling pulling from PyPI when installing pip and setuptools. The messages about the cache do look a bit unnecessarily scary, it might be nice if they didn't appear when pip is run by ensurepip. I'm not sure what removing the message for that particular case might entail, but it might be worth opening an issue for it. -- Zach -- https://mail.python.org/mailman/listinfo/python-list
Pip error on installing Python 3.5
I've just installed Python 3.5 from the source tarball and received an unexpected error related to pip. On Linux, as a regular user (except for the last line): wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz tar xvf Python-3.5.2.tgz cd Python-3.5.2 ./configure make sudo make altinstall There were no obvious errors until the end: The directory '/home/steve/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Ignoring indexes: https://pypi.python.org/simple The directory '/home/steve/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Can anyone explain what is going on, why I should care, and how I should fix it? -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got worse. -- https://mail.python.org/mailman/listinfo/python-list