version
- python 3.7+
- openssl 1.1.1+
Download a spcific release
wget https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tgz
Download openssl
wget https://www.openssl.org/source/openssl-1.1.1t.tar.gz
Install
- openssl
./configure --prefix=/usr/local/openssl
make; make install
- python
./configure --prefix=/usr/local/py3.10 --with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions --with-openssl=/usr/local/openssl --with-openssl-rpath=auto
make -j4;make altinstall
Download openai-quickstart-python
git clone https://github.com/openai/openai-quickstart-python.git
cd openai-quickstart-python
python -m venv ai
. ai/bin/activate
pip install -r requirements.txt
cp .env.example .env
flask run -p 18000 -h 0.0.0.0
Solve Python error: subprocess-exited-with-error
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for X
ERROR: Could not build wheels for X, which is required to install pyproject.toml-based projects
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
pip3 install wheel setuptools pip --upgrade
评论区