试图从窗口的Python3.10.6中运行Django (版本2.1)。我收到了一个来自Import Error的manage.py
ImportError(Couldn't import Django. Are you sure it's installed and available
on your PYTHONPATH environment variable?
Did you forget to activate a virtual environment?`
尝试过多种方法,但没有运气:
通过pip:在virtualenv上安装了Django
PS C:\User
我已经设置了虚拟环境
(website) username[`/public_html/website]
将django项目放在/public_html/website目录中
当我试图使用pip install django安装django时,会出现以下错误
Collecting django
Could not find a version that satisfies the requirement django (from versions:)
No mathcing distribution for django
我试过which pip,它给了public_html/website
我在Ubuntu16.04上安装了python3-SeleniumAPT软件包。在安装过程中,收到一条消息:
Suggested packages:
chromedriver firefoxdriver
The following NEW packages will be installed:
python3-selenium
当我试图在python3-django中运行测试用例时,我得到以下错误:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/firefoxdriver/webdriver.
当我尝试在Windows上安装Jupyter Notebook时,收到以下下载错误: ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\*redacted*\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python38\\site-packages\
我正在使用文档进行我的第一个django项目。我在导入django模块时遇到了这个错误。我确信django已经成功安装在我的虚拟环境中。错误是:
Unable to import 'django.shortcuts'
Unable to import 'django.http'
Unable to import 'django.contrib'
Unable to import 'django.urls'