Microsoft Windows [版本 10.0.18363.1556] (c) 2019 Microsoft Corporation。保留所有权利。 # pip安装pipenv D:\>pip install pipenv Looking in indexes: http://pypi.douban.com/simple Requirement already satisfied: pipenv in d:\python3.6\lib\site-packages (2022.1.8) Requirement already satisfied: virtualenv-clone>=0.2.5 in d:\python3.6\lib\site-packages (from pipenv) (0.5.7) Requirement already satisfied: setuptools>=36.2.1 in d:\python3.6\lib\site-packages (from pipenv) (59.6.0) Requirement already satisfied: certifi in d:\python3.6\lib\site-packages (from pipenv) (2021.10.8) Requirement already satisfied: pip>=18.0 in d:\python3.6\lib\site-packages (from pipenv) (21.3.1) Requirement already satisfied: virtualenv in d:\python3.6\lib\site-packages (from pipenv) (20.13.3) Requirement already satisfied: importlib-resources>=1.0 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (5.4.0) Requirement already satisfied: six<2,>=1.9.0 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (1.11.0) Requirement already satisfied: importlib-metadata>=0.12 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (4.8.3) Requirement already satisfied: platformdirs<3,>=2 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (2.4.0) Requirement already satisfied: distlib<1,>=0.3.1 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (0.3.4) Requirement already satisfied: filelock<4,>=3.2 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (3.4.1) Requirement already satisfied: zipp>=0.5 in d:\python3.6\lib\site-packages (from importlib-metadata>=0.12->virtualenv->pipenv) (3.6.0) Requirement already satisfied: typing-extensions>=3.6.4 in d:\python3.6\lib\site-packages (from importlib-metadata>=0.12->virtualenv->pipenv) (4.1.1)
D:\>pip show pipenv Name: pipenv Version: 2022.1.8 Summary: Python Development Workflow for Humans. Home-page: https://github.com/pypa/pipenv Author: Pipenv maintainer team Author-email: distutils-sig@python.org License: MIT Location: d:\python3.6\lib\site-packages Requires: certifi, pip, setuptools, virtualenv, virtualenv-clone Required-by:
D:\>cd Environment
D:\Environment>cd data-envs # 在该文件夹中创建pipenv配置文件,以后要配置该虚拟环境就直接进入这个环境用pipenv命令即可 D:\Environment\data-envs>pipenv install Creating a virtualenv for this project... Pipfile: D:\Environment\data-envs\Pipfile Using D:/python3.6/python.exe (3.6.2) to create virtualenv... [ ==] Creating virtual environment...created virtual environment CPython3.6.2.final.0-64 in 2892ms creator CPython3Windows(dest=C:\Users\Luffy\.virtualenvs\data-envs-EwQ4Zbmy, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\Luffy\AppData\Local\pypa\virtualenv) added seed packages: pip==21.3.1, setuptools==59.6.0, wheel==0.37.1 activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Successfully created virtual environment! Virtualenv location: C:\Users\Luffy\.virtualenvs\data-envs-EwQ4Zbmy Creating a Pipfile for this project... Pipfile.lock not found, creating... Locking [dev-packages] dependencies... Locking [packages] dependencies... Updated Pipfile.lock (ca72e7)! Installing dependencies from Pipfile.lock (ca72e7)... ================================ 0/0 - 00:00:00 To activate this project's virtualenv, run pipenv shell. Alternatively, run a command inside the virtualenv with pipenv run.
D:\Environment\data-envs>dir 驱动器 D 中的卷是 Program 卷的序列号是 654B-777A
D:\Environment\envs>pipenv shell Launching subshell in virtual environment... Microsoft Windows [版本 10.0.18363.1556] (c) 2019 Microsoft Corporation。保留所有权利。
(envs-f-7jKLmf) D:\Environment\envs>streamlit run D:/pycharm-code-2022/Test/app.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501 Network URL: http://10.176.178.83:8501