Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Can not run pip-review on Windows with Python 3 #12

Closed
Kristinita opened this issue Oct 8, 2016 · 4 comments
Closed

[Bug] Can not run pip-review on Windows with Python 3 #12

Kristinita opened this issue Oct 8, 2016 · 4 comments
Assignees
Labels

Comments

@Kristinita
Copy link

Summary

I can not run command pip-review.

Expected behavior

I want automatically updates all my pip modules.

Actual behavior

E:\Chocolatey>pip-review
"pip-review" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

Steps to reproduce

I read in Stack Overflow answer, what I can update all my pip modules use pip-review. I install pip-reviewpip install pip-review, I restart my Windows → I run pip-review, but I get error.

Environment

Operating system and version:
Windows 10.0.14393
Python
3.5.2
Pip
8.1.2
Pip-review
0.4

Thanks.

@jgonggrijp
Copy link
Owner

jgonggrijp commented Oct 9, 2016

Hello Kristina,

Update: I uploaded an update which should fix your issue. See the next post.

While it seems to work in most cases, pip-review is not officially supported under Python 3. In addition, I received some reports that pip-review does not work under Windows. I will fix these issues eventually, but I cannot promise it will happen soon.

Sorry for the disappointment. Until pip-review works for your setup, these are your options:

  • In order to list all packages that can be upgraded, run pip list -o.
  • In order to upgrade selected packages and their dependencies, run pip install -U package other_package ....
  • In order to upgrade all required packages in a virtual environment, first pip install pip-tools. Make sure that you have a requirements.in file which has the names of the packages that are directly used by your project, each on a separate line, without pinned version numbers. Now, while your virtual environment is activated, run pip-compile -U. This will generate a requirements.txt which has your project requirements and all their dependencies with their versions pinned to the latest available, without actually updating anything. Finally, either run pip install -U -r requirements.txt or pip-sync. The former will upgrade all required packages and their depencies, but it will not remove packages that your doesn't depend on anymore. The latter will also upgrade all required packages and their dependencies and it will remove packages that your project doesn't depend on anymore, but it will also uninstall packages that you installed separately while your project never depended on them. Unfortunately, neither of these options will upgrade packages that your project doesn't depend on.

If I can help you with anything in the meanwhile, please let me know.

@jgonggrijp jgonggrijp added the bug label Oct 9, 2016
@jgonggrijp jgonggrijp changed the title [Bug] Can not begin to use issue Can not run pip-review Oct 9, 2016
@jgonggrijp jgonggrijp changed the title Can not run pip-review Can not run pip-review on Windows with Python 3 Oct 9, 2016
@jgonggrijp jgonggrijp self-assigned this Oct 9, 2016
@jgonggrijp
Copy link
Owner

Actually, I found a way that should fix this. Please pip install -U pip-review to version 0.5 and let me know whether your issue is resolved. :-)

@jgonggrijp
Copy link
Owner

@Kristinita Did you see the update?

@Kristinita
Copy link
Author

@jgonggrijp , thanks, now pip-review normally worked for me!

@Kristinita Kristinita changed the title Can not run pip-review on Windows with Python 3 [Bug] Can not run pip-review on Windows with Python 3 Apr 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants