【发布时间】:2018-09-22 00:15:48
【问题描述】:
我正在使用 pipenv 安装 beautifulsoup,但由于某种原因,我收到了弃用警告。 (关于上下文,我使用 brew 安装 python,并使用 pip3 安装 pipenv):
Creating a virtualenv for this project...
Pipfile: /Users/kylemart/Desktop/test/Pipfile
Using /usr/local/bin/python3.7m (3.7.0) to create virtualenv...
⠋Running virtualenv with interpreter /usr/local/bin/python3.7m
Using base prefix '/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7'
/usr/local/lib/python3.7/site-packages/virtualenv.py:1041: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
New python executable in /Users/kylemart/.local/share/virtualenvs/test-F6PO10ji/bin/python3.7
Also creating executable in /Users/kylemart/.local/share/virtualenvs/test-F6PO10ji/bin/python
Installing setuptools, pip, wheel...done.
Setting project for test-F6PO10ji to /Users/kylemart/Desktop/test
Virtualenv location: /Users/kylemart/.local/share/virtualenvs/test-F6PO10ji
Installing beautifulsoup4...
Collecting beautifulsoup4
Using cached https://files.pythonhosted.org/packages/21/0a/47fdf541c97fd9b6a610cb5fd518175308a7cc60569962e776ac52420387/beautifulsoup4-4.6.3-py3-none-any.whl
Installing collected packages: beautifulsoup4
Successfully installed beautifulsoup4-4.6.3
Adding beautifulsoup4 to Pipfile's [packages]...
Installing dependencies from Pipfile.lock (4df8f1)...
???? ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 1/1 — 00:00:00
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
我该如何解决这个问题?
【问题讨论】:
标签: python-3.x virtualenv homebrew pipenv