AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[virtualenvwrapper](ubuntu)

Martin Hope
anjanesh
Asked: 2021-02-01 04:52:40 +0800 CST

pandas 0.24.2 没有安装在没有 sudo 的虚拟环境中

  • 2
cat requirements.txt 
requests==2.22.0
pandas==0.24.2

我遇到了很多错误。这是权限问题。
当我这样做sudo pip3 install -r requirements.txt时,没有错误并且成功安装了 pandas-0.24.2。我在 Ubuntu 20.04.1 上。
在虚拟环境中,所有包都下载到/home/ubuntu/.virtualenvs/my-project/lib/python3.8/site-packages,那么为什么需要 sudo ?

virtualenvwrapper
  • 1 个回答
  • 436 Views
Martin Hope
Pe Dro
Asked: 2020-05-24 09:31:12 +0800 CST

将“sudo”与“virtualenv”一起使用

  • 0

我正在开发一个虚拟环境:sk,我是这样制作的:

$ mkvirtualenv sk -p python3

我workon sk用来激活这个环境并在其中工作。当我尝试在其中运行该perf实用程序的某些功能时,它会请求许可;它建议我使用sudo. 这样做时,环境的本质就会丢失,因为它没有检测到我在其中安装的任何包(例如pandas)。

我已经在这个网站上浏览了与这里类似的文章,它建议使用命令

sudo ./AwesomeProject/bin/python <script>

virtualenv 在哪里./AwesomeProject。我试了一下,发现我的虚拟环境中的 Python 实例是./.virtualenvs/sk/bin/python3. 我将实例运行为:

$./.virtualenvs/sk/bin/python3 main.py

我明白了bash: .virtualenvs/sk/bin/python3: No such file or directory

(main.py是我打算运行的python脚本)

为什么我使用 sudo 会遇到这个错误,我应该如何克服这个错误?

bash sudo python3 virtualenv virtualenvwrapper
  • 1 个回答
  • 1606 Views
Martin Hope
SeemsToBeStuck
Asked: 2019-09-07 08:52:04 +0800 CST

不确定使用 Python 3.7 安装 Virtualwrapper 的命令

  • 0

我正在尝试安装virtualwrapper和Django. 但我最终遇到了这些 cmds:

sudo apt-get install python3 virtualenvwrapper

或者

sudo apt install virtualenvwrapper

我不确定cmd我需要使用哪个来安装virtualwrapper. 我还需要安装Django。然后PyCharm IDE。我不想再次毁掉一切

python virtualenvwrapper
  • 1 个回答
  • 43 Views
Martin Hope
SeemsToBeStuck
Asked: 2019-06-02 13:35:01 +0800 CST

Mkvirtualenv:找不到命令 19.04

  • 0

正在尝试安装Django Framework。当我第一次尝试激活虚拟环境时:

mkvirtualenv test
mkvirtualenv: command not found

安装位置:

which virtualenvwrapper.sh
/usr/local/bin/virtualenvwrapper.sh

安装时我没有使用的研究更新sudo。这是教程一和教程二。

python3 django pip virtualenvwrapper
  • 2 个回答
  • 5386 Views
Martin Hope
Isaac A
Asked: 2018-08-26 12:30:29 +0800 CST

打开终端时“检查是否已为 VIRTUALENVWRAPPER_PYTHON 安装了 virtualenvwrapper”

  • 1
/home/isaac/anaconda3/bin/python: Error while finding module specification for 'virtualenvwrapper.hook_loader' (ModuleNotFoundError: No module named 'virtualenvwrapper')
virtualenvwrapper.sh: There was a problem running the initialization hooks. 

If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/home/isaac/anaconda3/bin/python and that PATH is
set properly.

我将如何解决上述问题?

command-line python bash virtualenvwrapper
  • 1 个回答
  • 2011 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve