Skip to content

Python 3.7 - DeprecationWarning: the imp module is deprecated in favour of importlib during install #2721

@oppsig

Description

@oppsig
Issue description

pipenv install requests_html.

DeprecationWarning: the imp module is deprecated in favour of importlib

Expected result

Install package requests_html in pipenv.

Actual result
Creating a virtualenv for this project...
Pipfile: /home/kodi/Code/app/Pipfile
Using /usr/bin/python (3.7.0) to create virtualenv...
⠋Already using interpreter /usr/bin/python
Using base prefix '/usr'
/usr/lib/python3.7/site-packages/virtualenv.py:1039: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
New python executable in /home/kodi/.local/share/virtualenvs/app-z8LAYKO_/bin/python
Installing setuptools, pip, wheel...done.
Setting project for app-z8LAYKO_ to /home/kodi/Code/app

Virtualenv location: /home/kodi/.local/share/virtualenvs/app-z8LAYKO_
Creating a Pipfile for this project...
Installing requests_html...
⠇
Error:  An error occurred while installing requests_html!
Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions