简体   繁体   English

在执行 pip 安装 mod_wsgi 时失败

[英]while doing pip install mod_wsgi is failing

I am trying to put my django site on apache and i am following these tutorial enter link description here In doing these by these command我正在尝试将我的 django 网站放在 apache 上,我正在按照这些教程在此处输入链接描述在通过这些命令执行这些操作时

set "MOD_WSGI_APACHE_ROOTDIR=C:\xampp\apache
pip install mod_wsgi

I am getting these error.我收到这些错误。

wsgi_apache.obj : error LNK2001: unresolved external symbol __imp_apr_conv_utf8_to_ucs2
wsgi_buckets.obj : error LNK2001: unresolved external symbol __imp_apr_bucket_shared_make
wsgi_buckets.obj : error LNK2001: unresolved external symbol __imp_apr_bucket_shared_copy
wsgi_buckets.obj : error LNK2001: unresolved external symbol __imp_apr_bucket_free
wsgi_buckets.obj : error LNK2001: unresolved external symbol __imp_apr_bucket_alloc
wsgi_buckets.obj : error LNK2001: unresolved external symbol __imp_apr_bucket_shared_destroy
wsgi_buckets.obj : error LNK2001: unresolved external symbol __imp_apr_bucket_shared_split
wsgi_interp.obj : error LNK2001: unresolved external symbol __imp_ap_show_mpm
wsgi_interp.obj : error LNK2001: unresolved external symbol __imp_ap_get_server_description
wsgi_interp.obj : error LNK2001: unresolved external symbol __imp_ap_get_server_built
wsgi_metrics.obj : error LNK2001: unresolved external symbol __imp_ap_get_scoreboard_process
wsgi_metrics.obj : error LNK2001: unresolved external symbol __imp_ap_get_scoreboard_worker_from_indexes
wsgi_metrics.obj : error LNK2001: unresolved external symbol __imp_ap_exists_scoreboard_image
wsgi_thread.obj : error LNK2001: unresolved external symbol __imp_apr_threadkey_private_get
wsgi_thread.obj : error LNK2001: unresolved external symbol __imp_apr_threadkey_private_set
build\lib.win-amd64-3.6\mod_wsgi\server\mod_wsgi.cp36-win_amd64.pyd : fatal error LNK1120: 101 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120

I had already tried other lot answers available on stackoverflow but nothing works.Every help will be appreciated我已经尝试过 stackoverflow 上可用的其他很多答案,但没有任何效果。我们将不胜感激

As graham-dumpleton said in the comments, you must have the same version (x86) python, MS build tools, and Apache. Or x64.正如graham-dumpleton在评论中所说,您必须具有相同的版本 (x86) python、MS 构建工具和 Apache。或 x64。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM