Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Testing enhancement: Test `pip install`

See original GitHub issue

@bittner , this is right up your alley so if you’ll feel like doing it, it’ll be cool.

It’ll be nice if after every release, or after every push to master, there will be separate tests that do pip install pysnooper on all platforms and run the tests. This is to rule out any errors in the installation.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

bittnercommented, Apr 27, 2019

@enadol: This behavior is normal on any GNU/Linux system.

PermissionError: [Errno 13] Permission denied: ‘/usr/local/lib/python3.4/dist-packages/pysnooper’

The error says, you - user pi - are not allowed to write in areas that require elevated privileges (read: administrator access, i.e. root). Note that this is fine, it makes it more difficult for attackers that manage to enter your Raspberry Pi via an unprivileged account to do harm to your machine.

On Windows you may be used to work with an administrator-level user. This allows you to install programs anywhere, which makes your system insecure by default.

TL;DR - How install a Python package?

You have two options to install Python packages on GNU/Linux. As a super-user or in your userspace.

$ sudo pip3 install pysnooper

This will prompt you for your user password (and requires the user to be in the sudo group). If sudo is not installed use su and enter the root user’s password:

$ su -c "pip3 install pysnooper"

Installing in your userspace requires no special privileges:

$ pip3 install --user pysnooper

It makes packages available in ~/.local/lib/ and scripts in ~/.local/bin/ (just in case this is not in your PATH by default).

cool-RRcommented, Apr 27, 2019

@enadol :

  1. Please move this to a new issue.
  2. Please confirm that you can install other packages via pip, and show the output
Read more comments on GitHub >

github_iconTop Results From Across the Web

vutils-testing - PyPI
This package provides a set of tools that help with writing tests. It helps with creating test data and types, mocking objects, patching,...
Read more >
pip install - pip documentation v22.3.1
The install command has a --report option that will generate a JSON report of what pip has installed. In combination with the --dry-run...
Read more >
Required packages missing when testing a Python project ...
Please run `pip install -r requirements.txt`. If the issue persists try again with --allow-missing. Resolution. First, make sure that you have installed your ......
Read more >
test — Regression tests package for Python — Python 3.11.1 ...
The test package contains all regression tests for Python as well as the modules and test.regrtest. is used to enhance your...
Read more >
Installation — QuTiP 4.7 Documentation
It is still possible to use pip to install QuTiP while using conda, ... To run the suite of tests scripts you must...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found