درود بر شما
بنده هارد لبتابم رو عوض کردم الان می خواهم پروژه ای که قبلا نوشتم رو در پای جارم اجرا کنم
اما در نصب پکیجها توسط requirements.txt خطای زیر رو دارم به همین خاطر مجبور شدم پکیجها رو دونه ونه نصب کنم اما در نصب بعضی از اونها هم همین خطا رو دارم - لازم به ذکر است که زمانی که در قسمت ترمینال می رم virtualenvirment هم فعال نمیشه حتما باید دستی فعالش کنم . اما در پروژه های دیگه ای که می سازم این اتفاق نمی افته. نسحه پاتون در سیستم قبلی 3.9 بوده در سیستم فعلی 3.11 است
ممنون میشم در خصوص خطا و اجرا نشدن venv راهنمایی بفرمایید
خطا :
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\ASUS\AppData\Local\Temp\pip-install-yk81w2a_\pyramid-who_dbab900fa4784c118b08d8fa778dfc2a\setup.py", line 23, in <module>
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ASUS\AppData\Local\Programs\Python\Python311\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 736: character maps to <undefined>
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
سلام دوست من
این مشکل معمولا زمانی ایجاد میشه که کاراکتر های فارسی در terminal قرار داده بشن
بررسی کنین که در فایل req.txt کاراکتر فارسی نباشه
در فایل requirements.txt موارد زیر درج گردیده است:
antiorm==1.2.1
appdirs==1.4.4
arabic-reshaper==2.1.3
asgiref==3.5.0
attrs==20.3.0
Beaker==1.11.0
bleach==4.1.0
Brotli==1.0.9
cached-property==1.5.2
cairocffi==1.3.0
CairoSVG==2.5.2
certifi==2020.12.5
cffi==1.14.6
chardet==4.0.0
charset-normalizer==2.0.12
cssselect2==0.4.1
db==0.1.1
defusedxml==0.7.1
diff-match-patch==20200713
Django==3.2
django-admin-thumbnails==0.2.5
django-ajax-selects==2.2.0
django-appconf==1.0.4
django-background-tasks==1.2.5
django-ckeditor==6.0.0
django-colorfield==0.4.1
django-compat==1.0.15
django_compressor
django-easy-select2==1.5.7
django-email-phone-user==1.0.3
django-filter==2.4.0
django-imagekit==4.0.2
django-import-export==2.5.0
django-js-asset==1.2.2
django-render-partial==0.4
djangorestframework==3.14.0
et-xmlfile==1.1.0
farapayamak==1.0.1
fonttools==4.26.2
future==0.18.2
gunicorn==21.2.0
html5lib==1.1
hupper==1.10.3
idna==2.10
isodate==0.6.0
jdatetime==3.6.2
kavenegar==1.1.2
lxml==4.6.3
Mako==1.1.6
MarkupPy==1.14
MarkupSafe==2.1.0
max==3.6
mysqlclient==2.1.0
nose==1.3.7
oauthlib==3.2.0
odfpy==1.4.1
openpyxl==3.0.7
osiris==1.4
packaging==21.3
Paste==3.5.0
PasteDeploy==2.1.1
pika==1.2.0
pilkit==2.0
Pillow==8.1.2
plaster==1.0
plaster-pastedeploy==0.7
psycopg2==2.9.3
pycparser==2.20
pycryptodome==3.14.1
pydyf==0.1.1
Pygments==2.11.2
pymongo==4.0.1
pyparsing==3.0.7
PyPDF2==1.26.0
pyphen==0.11.0
pyramid==2.0
pyramid-debugtoolbar==4.9
pyramid-mako==1.1.0
pyramid-tm==2.4
pyramid-who==0.1
python-bidi==0.4.2
python-dateutil==2.8.2
pytz==2021.1
rsa>=4.6
reportlab==3.6.1
repoze.lru==0.7
repoze.who==2.4.1
requests==2.27.1
requests-file==1.5.1
requests-oauthlib==1.3.1
requests-toolbelt==0.9.1
rfc3339==6.2
six==1.15.0
sqlparse==0.4.1
tablib==3.0.0
tinycss2==1.1.0
transaction==3.0.1
translationstring==1.4
tweepy==4.5.0
tzdata==2021.5
Unidecode==1.3.4
urllib3==1.26.4
venusian==3.0.0
waitress==2.0.0
weasyprint==54.3
webencodings==0.5.1
WebOb==1.8.7
xlrd==2.0.1
xlwt==1.3.0
zeep==4.0.0
zope.deprecation==4.4.0
zope.interface==5.4.0
zopfli==0.1.8
مشکل در نسخه پایتون بود -پایتون 3.9 رو نصب کردم حل شد ممنونم
خوشحالم برطرف شد
موفق باشین :)