我在做什么:
我试着进口蒙皮:
import numpy
但我得到了以下错误:
Exception has occurred: ImportError
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have
我给出了python/django/夹层的第一步,所以请容忍我。
我修改了一个翻译文件并对其进行了编译。
翻译后的文件属于夹层的博客应用程序,我发现唯一可以测试的地方是博客应用程序的地区文件夹(~/MY_VIRTUAL_ENV/lib/python2.7/site-packages/mezzanine/blog/locale/es/LC_MESSAGES).
它运行得很好,但我的勇气告诉我,必须有一种方法可以在我自己的夹层应用程序中的其他位置拥有这个文件,所以:
I can easily maintain it and
I don't have to keep my whole vir
我使用以下方法创建python虚拟环境:
python3 -m venv venv3
要激活,我source venv3/bin/activate。
venv3/bin/activate似乎并没有那么复杂:
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly
deactivate () {
# reset old environment variables
if [ -n "$_OLD_VIRTUAL_PATH"