我正在尝试在虚拟环境中为 django 项目安装 uwsgi;我使用的是 Windows 10。
我做到了pip install uwsgi并且我得到了Command "python setup.py egg_info"。
所以为了解决这个错误,我遵循了这个答案
根据答案,我按照 此安装了适用于 Windows 的 cygwin 和 gcc 编译器。
还将os.uname()更改为platform.uname()
现在,当我运行“python setup.py install”时。我收到这个错误
C:\Users\Suhail\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py:275: UserWarning: Unknown distribution option: 'descriptions'
warnings.warn(msg)
running install
C:\Users\Suhail\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
using profile: buildconf/default.ini
detected include path: ['/usr/include', '/usr/local/include']
Patching "bin_name" to properly install_scripts dir
detected CPU cores: 4
configured CFLAGS: -O2 -I. …Run Code Online (Sandbox Code Playgroud) 我在虚拟环境中使用 django。我正在使用 powershell 并尝试安装 pyopenssl。
内部虚拟环境:
点版本 = 19.2.3
蟒蛇版本= 3.8.3
外部虚拟环境:
点版本 = 21.2.4
蟒蛇版本= 3.8.3
我尝试使用 python -m pip install -U pip and升级虚拟环境中的 pip pip install --upgrade pip ,但它被挂起,没有产生任何输出,这里是 屏幕截图。
我尝试pip install pyopenssl:
(bookmarks) bookmarks> pip install pyopenssl
Collecting pyopenssl
Using cached https://files.pythonhosted.org/packages/b2/5e/06351ede29fd4899782ad335c2e02f1f862a887c20a3541f17c3fa1a3525/pyOpenSSL-20.0.1-py2.py3-none-any.whl
Collecting six>=1.5.2 (from pyopenssl)
Using cached https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Collecting cryptography>=3.2 (from pyopenssl)
Using cached https://files.pythonhosted.org/packages/cc/98/8a258ab4787e6f835d350639792527d2eb7946ff9fc0caca9c3f4cf5dcfe/cryptography-3.4.8.tar.gz
Installing build dependencies ...
Run Code Online (Sandbox Code Playgroud)
它挂在了Installing build dependencies ...。我等了30分钟但什么也没发生。
我也尝试过python -m pip install pyopenssl
(bookmarks) bookmarks> …Run Code Online (Sandbox Code Playgroud)