Closed ghost closed 3 years ago
Looks like its a ZSH issue for some reason. Can't understand it.
Not sure what to do because I incorrectly assumed that the command didn't require brackets. In fact pip was seeing it as a list of packages to install. It looks like those packages weren't linked correctly to webchanges.
I switched to the BASH shell and used the syntax you provided and the command worked but now I am thinking I have duplicate packages installed? How can I remove or fix this issue?
Thanks for opening the issue.
As you found out, the syntax is for setuptools extras and is correct with brackets as per pip examples. It also works (see below).
I recommend you open an issue with ZSH and/or pip.
I am sorry you had to go through this but it nothing that this project can fix (and I don't use ZSH). But please do update this issue if you find anything useful that can be added to the documentation for future users!
C:\Users\username>pip install --upgrade webchanges[use_browser]
Collecting webchanges[use_browser]
Downloading webchanges-3.8.3-py3-none-any.whl (86 kB)
|████████████████████████████████| 86 kB 6.1 MB/s
Requirement already satisfied: colorama in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (0.4.4)
Requirement already satisfied: lxml in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (4.6.3)
Requirement already satisfied: pyyaml in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (5.4.1)
Requirement already satisfied: tzdata in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (2021.1)
Requirement already satisfied: markdown2 in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (2.4.1)
Requirement already satisfied: platformdirs in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (2.3.0)
Requirement already satisfied: requests in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (2.26.0)
Requirement already satisfied: msgpack in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (1.0.2)
Requirement already satisfied: html2text in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (2020.1.16)
Requirement already satisfied: cssselect in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (1.1.0)
Requirement already satisfied: pyppeteer in c:\program files\python\python39\lib\site-packages (from webchanges[use_browser]) (0.2.6)
Requirement already satisfied: importlib-metadata>=1.4 in c:\program files\python\python39\lib\site-packages (from pyppeteer->webchanges[use_browser]) (4.8.1)
Requirement already satisfied: tqdm<5.0.0,>=4.42.1 in c:\program files\python\python39\lib\site-packages (from pyppeteer->webchanges[use_browser]) (4.62.2)
Collecting websockets<10.0,>=9.1
Using cached websockets-9.1-cp39-cp39-win_amd64.whl (90 kB)
Requirement already satisfied: urllib3<2.0.0,>=1.25.8 in c:\program files\python\python39\lib\site-packages (from pyppeteer->webchanges[use_browser]) (1.26.6)
Requirement already satisfied: appdirs<2.0.0,>=1.4.3 in c:\program files\python\python39\lib\site-packages (from pyppeteer->webchanges[use_browser]) (1.4.4)
Requirement already satisfied: pyee<9.0.0,>=8.1.0 in c:\program files\python\python39\lib\site-packages (from pyppeteer->webchanges[use_browser]) (8.2.2)
Requirement already satisfied: zipp>=0.5 in c:\program files\python\python39\lib\site-packages (from importlib-metadata>=1.4->pyppeteer->webchanges[use_browser]) (3.5.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\program files\python\python39\lib\site-packages (from requests->webchanges[use_browser]) (2021.5.30)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\program files\python\python39\lib\site-packages (from requests->webchanges[use_browser]) (2.0.6)
Requirement already satisfied: idna<4,>=2.5 in c:\program files\python\python39\lib\site-packages (from requests->webchanges[use_browser]) (3.2)
Installing collected packages: websockets, webchanges
Successfully installed webchanges-3.8.3 websockets-9.1
I just moved from bash
to zsh
a day ago so... bound to be "features" I am unaware of. Hope this helps others. Maybe include this in your documentation?
In zsh shell [
does pattern matching. Brackets need to be escaped: \[package\]
$ python -m pip install --upgrade webchanges\[use_browser\]
I am trying to install dependencies according to instructions but am getting a failed response.
May I just install them using
pip install
dependency
?I am using pyenv for my python install on macOS Big Sur.
EDIT: Are we not supposed to include brackets?
EDIT2: found the correct format
Suggestion: In your example code don't include brackets. Just use the code as it should be entered - sans brackets. The wording and the example work together to make it seem as though they are a required part of the command.
as shown:
whereas this is the correct command:
Using the new format some dependencies aren't found: