Forum in maintenance, we will back soon 🙂
[Solved] RE:Python error
@wiscochris, you need to activate your virtual environment first and then install all the modules again (even Openai). Activate it by running the following in the terminal:
venv\Scripts\activate
Ok. I did that. Then successfully installed openai 🙂 but then tried to install instuctor without success 🙁
https://app.screencast.com/ZtsbXc43TSSuQ. I'm getting closer, right? :). further instruction would be apprecaited.
(venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> python -m pip install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl Installing collected packages: pip Found existing installation: pip 18.1 Uninstalling pip-18.1: Successfully uninstalled pip-18.1 Successfully installed pip-21.3.1 (venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> pip install -U instructor ERROR: Could not find a version that satisfies the requirement instructor (from versions: none) ERROR: No matching distribution found for instructor (venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> pip install typing pydantic instructor streamlit requests selenium selenium-stealth Collecting typing Using cached typing-3.7.4.3.tar.gz (78 kB) Preparing metadata (setup.py) ... done Collecting pydantic Downloading pydantic-1.9.2-cp36-cp36m-win_amd64.whl (2.1 MB) |████████████████████████████████| 2.1 MB 2.2 MB/s ERROR: Could not find a version that satisfies the requirement instructor (from versions: none) ERROR: No matching distribution found for instructor (venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> venv\Scripts\activate (venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> pip instal openai ERROR: unknown command "instal" - maybe you meant "install" (venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> pip install openai Collecting openai Using cached openai-0.10.5.tar.gz (157 kB) Preparing metadata (setup.py) ... done Collecting requests>=2.20 Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB) Collecting tqdm Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB) |████████████████████████████████| 78 kB 1.7 MB/s Collecting openai Using cached openai-0.10.4.tar.gz (157 kB) Preparing metadata (setup.py) ... done Using cached openai-0.10.3.tar.gz (157 kB) Preparing metadata (setup.py) ... done Using cached openai-0.10.2.tar.gz (156 kB) Preparing metadata (setup.py) ... done Using cached openai-0.10.1.tar.gz (155 kB) Preparing metadata (setup.py) ... done Using cached openai-0.10.0.tar.gz (155 kB) Preparing metadata (setup.py) ... done Using cached openai-0.9.4.tar.gz (156 kB) Preparing metadata (setup.py) ... done Using cached openai-0.9.3.tar.gz (155 kB) Preparing metadata (setup.py) ... done Using cached openai-0.9.2.tar.gz (155 kB) Preparing metadata (setup.py) ... done Using cached openai-0.9.1.tar.gz (156 kB) Preparing metadata (setup.py) ... done Using cached openai-0.9.0.tar.gz (155 kB) Preparing metadata (setup.py) ... done Using cached openai-0.8.0.tar.gz (147 kB) Preparing metadata (setup.py) ... done Collecting certifi>=2017.4.17 Downloading certifi-2024.2.2-py3-none-any.whl (163 kB) |████████████████████████████████| 163 kB 6.8 MB/s Collecting urllib3<1.27,>=1.21.1 Downloading urllib3-1.26.18-py2.py3-none-any.whl (143 kB) |████████████████████████████████| 143 kB 6.4 MB/s Collecting idna<4,>=2.5 Downloading idna-3.6-py3-none-any.whl (61 kB) |████████████████████████████████| 61 kB ... Collecting charset-normalizer~=2.0.0 Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB) Collecting importlib-resources Downloading importlib_resources-5.4.0-py3-none-any.whl (28 kB) Collecting colorama Downloading colorama-0.4.5-py2.py3-none-any.whl (16 kB) Collecting zipp>=3.1.0 Using cached zipp-3.6.0-py3-none-any.whl (5.3 kB) Using legacy 'setup.py install' for openai, since package 'wheel' is not installed. Installing collected packages: zipp, urllib3, importlib-resources, idna, colorama, charset-normalizer, certifi, tqdm, requests, openai Running setup.py install for openai ... done Successfully installed certifi-2024.2.2 charset-normalizer-2.0.12 colorama-0.4.5 idna-3.6 importlib-resources-5.4.0 openai-0.8.0 requests-2.27.1 tqdm-4.64.1 urllib3-1.26.18 zipp-3.6.0 (venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> pip install -U instructor ERROR: Could not find a version that satisfies the requirement instructor (from versions: none) ERROR: No matching distribution found for instructor (venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> pip install instructor ERROR: Could not find a version that satisfies the requirement instructor (from versions: none) ERROR: No matching distribution found for instructor (venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> python app.py Traceback (most recent call last): File "app.py", line 1, in <module> from openai_functions import analyze_image_basic,generate_with_response_model File "C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main\openai_functions.py", line 2, in <module> import instructor ModuleNotFoundError: No module named 'instructor' (venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> python -m pip install --upgrade pip Requirement already satisfied: pip in c:\users\bazoo\downloads\ai-marketing-army-tester-main2\ai-marketing-army-tester-main\venv\lib\site-packages (21.3.1) (venv) PS C:\Users\bazoo\Downloads\AI-Marketing-Army-Tester-main2\AI-Marketing-Army-Tester-main> pip install typing pydantic instructor streamlit requests selenium selenium-stealth Collecting typing Using cached typing-3.7.4.3.tar.gz (78 kB) Preparing metadata (setup.py) ... done Collecting pydantic Using cached pydantic-1.9.2-cp36-cp36m-win_amd64.whl (2.1 MB) ERROR: Could not find a version that satisfies the requirement instructor (from versions: none) ERROR: No matching distribution found for instructor
@wiscochris I just tried this on my system and it worked perfectly. I don't know if this will help you but try:
pip install -U instructor==1.0.3
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@wiscochris I just tried uninstalling Instructor and installing it again, and it worked perfectly. Try what @ssadvisor mentioned and if it doesn't work try installing it alone, maybe it'll work. Like this:
pip install instructor