Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python &引用;1“生成警告”;从pip3、django和postgresql安装psycopg2之后_Python_Django_Postgresql - Fatal编程技术网

Python &引用;1“生成警告”;从pip3、django和postgresql安装psycopg2之后

Python &引用;1“生成警告”;从pip3、django和postgresql安装psycopg2之后,python,django,postgresql,Python,Django,Postgresql,我正在学习django,我正在尝试使用postgresql,我需要安装psycopg2模块 当我sudo-pip安装psycopg2时,我得到以下信息: The directory '/Users/hello/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions a

我正在学习django,我正在尝试使用postgresql,我需要安装psycopg2模块

当我
sudo-pip安装psycopg2
时,我得到以下信息:

The directory '/Users/hello/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/hello/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting psycopg2
/Library/Python/2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading psycopg2-2.6.1.tar.gz (371kB)
    100% |████████████████████████████████| 372kB 381kB/s 
Building wheels for collected packages: psycopg2
  Running setup.py bdist_wheel for psycopg2
  Stored in directory: /Users/hello/Library/Caches/pip/wheels/e2/9a/5e/7b620848bbc7cfb9084aafea077be11618c2b5067bd532f329
Successfully built psycopg2
Installing collected packages: psycopg2
Successfully installed psycopg2-2.6.1
然后当我安装psycopg2时

我收到了更多的信息,但我注意到了以下信息:

In file included from psycopg/bytes_format.c:81:
In file included from ./psycopg/psycopg.h:33:
./psycopg/config.h:71:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
In file included from psycopg/bytes_format.c:81:
In file included from ./psycopg/psycopg.h:33:
./psycopg/config.h:71:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
我想这会被重复。。。但最后,它说
成功安装了psycopg2-2.6.1

为什么我会收到一堆信息和那个错误?这正常吗


谢谢

这是来自C编译器的警告消息。调用C编译器来构建库所需的本机Python扩展。警告消息通常依赖于平台和编译器。如果您没有调试或诊断特定问题,通常可以安全地忽略它们。

这是关于可能用于打印调试消息的未使用函数的无害警告。