使用Python 3.6在Raspberry Pi 3 Model B上安装virtualenvwrapper

问题描述 投票:0回答:2

我一直在尝试在Raspberry Pi 3 Model B上下载/安装virtualenvwrapper,但是在终端中使用命令“source~ / .profile”时收到错误消息。我正在尝试使用python 3.6安装OpenCV,但我需要设置virtualenvwrapper。我运行“source~ / .profile”时得到的错误是:

/usr/bin/python: 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=/usr/bin/python and that PATH is
set properly.

我正在关注此在线指南:https://www.pyimagesearch.com/2017/09/04/raspbian-stretch-install-opencv-3-python-on-your-raspberry-pi/

任何帮助将不胜感激,提前谢谢。

python terminal raspberry-pi virtualenv virtualenvwrapper
2个回答
0
投票

管理修复它,不得不重写“〜/ .profile”。


0
投票

更改

VIRTUALENVWRAPPER_PYTHON=/usr/bin/python

VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/pythonx.x

x.x是Python版本)。

© www.soinside.com 2019 - 2024. All rights reserved.