انجمنهای فارسی اوبونتو
تازه کار => انجمن تازهکاران => نویسنده: alich65 در 04 آذر 1399، 05:00 بظ
-
سلام وقت بخیر
بنده می خوام این نرم افزار رو روی اوبونتو نصب کنم
https://github.com/omniscale/imposm3/releases
فقط الان نمی دونم بعد از دانلود به چه صورت نصب کنم.
خیلی ممنون میشم اگه بنده رو راهنمایی بفرمایید
باتشکر
-
کار راحتتر، نصبش با pip است:
mkdir imposm
cd imposm
python3 -m venv .env
source .env/bin/activate
pip install imposm
imposm
-
خیلی ممنون از پاسخ شما
فقط الان یک خطا میده و نصب نمیشه
تصویر خطا رو به پیوست ارسال کردم
-
خطا به این شکل است:
(.env) ali@ali:~/Downloads/imposm$ pip install imposm
Collecting imposm
Using cached imposm-2.6.0.tar.gz (117 kB)
ERROR: Command errored out with exit status 1:
command: /home/ali/Downloads/imposm/.env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1jjc7ydu/imposm/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1jjc7ydu/imposm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-1jjc7ydu/imposm/pip-egg-info
cwd: /tmp/pip-install-1jjc7ydu/imposm/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-1jjc7ydu/imposm/setup.py", line 24
print 'imposm/cache/tc.c up to date'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('imposm/cache/tc.c up to date')?
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
-
~/Downloads/imposm-0.11.0-linux-x86-64$ ./imposm3
Usage: ./imposm3 COMMAND [args]
Available commands:
import
diff
run
query-cache
version
از ترمینال اجرا کنید البته فایلش رو باید اکسترکت کنید \\:D/
-
خطا به این شکل است:
(.env) ali@ali:~/Downloads/imposm$ pip install imposm
Collecting imposm
Using cached imposm-2.6.0.tar.gz (117 kB)
ERROR: Command errored out with exit status 1:
command: /home/ali/Downloads/imposm/.env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1jjc7ydu/imposm/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1jjc7ydu/imposm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-1jjc7ydu/imposm/pip-egg-info
cwd: /tmp/pip-install-1jjc7ydu/imposm/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-1jjc7ydu/imposm/setup.py", line 24
print 'imposm/cache/tc.c up to date'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('imposm/cache/tc.c up to date')?
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
این خطا نشونمیده که کدتونخیلی قدیمیه و با پایتون ۲ نوشته شده که دیگه پشتیبانی نمیشه. با پذیرفتن خطرات امنیتی، میتونین یه محیط مجازی پایتون۲ براش بسازید و اون تو اجراش کنید.