克隆项目到本地
    $ git clone git://github.com/kennethreitz/autoenv.git ~/.autoenv
配置用户环境变量
    $ echo 'source ~/.autoenv/activate.sh' >> ~/.bashrc
载入用户环境变量
    $ source ~/.bashrc
写入虚拟环境到项目文件夹
    $ echo "source venv/bin/activate" > project/.env
    # venv/bin/activate 代表python的虚拟环境位置,project表示你的项目文件夹,需要手动修改

原文来自:https://wuxiaobai.win/archives/368

本文地址:https://www.linuxprobe.com/autoenv-python.html编辑:吴向平,审核员:逄增宝

本文原创地址:https://www.linuxprobe.com/autoenv-python.html编辑:xiangping wu,审核员:暂无