I’m getting something like this. Can anyone please tell me how to fix this.
C:UserskrushDocumentsML using Python>pip install pocketsphinx
Collecting pocketsphinx
Using cached pocketsphinx-0.1.3.zip
Building wheels for collected packages: pocketsphinx
Running setup.py bdist_wheel for pocketsphinx: started
Running setup.py bdist_wheel for pocketsphinx: finished with status 'error'
Complete output from command C:UserskrushAnaconda3python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\krush\AppData\Local\Temp\pip-build-cns2i_wb\pocketsphinx\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:UserskrushAppDataLocalTemptmp3tyvnl9wpip-wheel- --python-tag cp36:
running bdist_wheel
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig.exe -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/win32 -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
error: command 'swig.exe' failed: No such file or directory
----------------------------------------
Failed building wheel for pocketsphinx
Running setup.py clean for pocketsphinx
Failed to build pocketsphinx
Installing collected packages: pocketsphinx
Running setup.py install for pocketsphinx: started
Running setup.py install for pocketsphinx: finished with status 'error'
Complete output from command C:UserskrushAnaconda3python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\krush\AppData\Local\Temp\pip-build-cns2i_wb\pocketsphinx\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UserskrushAppDataLocalTemppip-x5mxeczy-recordinstall-record.txt --single-version-externally-managed --compile:
running install
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig.exe -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/win32 -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
error: command 'swig.exe' failed: No such file or directory
----------------------------------------
Command "C:UserskrushAnaconda3python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\krush\AppData\Local\Temp\pip-build-cns2i_wb\pocketsphinx\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UserskrushAppDataLocalTemppip-x5mxeczy-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UserskrushAppDataLocalTemppip-build-cns2i_wbpocketsphinx
asked Jun 12, 2017 at 16:59
2
To fix the problem, I downloaded swig for windows at the time of writing this answer it was 3.0.12
For the latest swig windows version follow this link
-
Copy swig.exe to the python installation folder (for ex C:/python27)
-
Open the
swigwin-3.0.12/Libfolder and copy all*.swgfiles to theC:/python27/Libor equivalent python path -
Open
swigwin-3.0.12/Lib/pythonand copy all the files toC:/python27/Lib -
Open the
swigwin-3.0.12/Libfolder and copy over thetypemapsfolder toC:/python27/Lib
(Also make sure you have Microsoft Visual C++ Compiler for Python installed)
These steps worked for me.
answered May 1, 2018 at 14:09
Jay ShenawyJay Shenawy
9031 gold badge11 silver badges22 bronze badges
6
conda install swig
pip install pocketsphinx
I didn’t want to do all that setup other people are suggesting so I tried this and it worked.
This probably only works if you are using Anaconada though.
answered Sep 28, 2019 at 8:16
3
Instead of copying Swig files to the Python folder, you can simply add Swig`s location to the environment variables:
- Press
Ctrl+S - Type
envand pressEnter - Double click on
Path - Add the path-to-Swig to the last blank line
- Click
OKand restart your PC
answered Sep 14, 2018 at 9:54
W BarretoW Barreto
4384 silver badges11 bronze badges
4
You try to install pocketsphinx with pip, that will download and compile this module. It requires some compiling tool like swig.
Another solution is to install a binary version of pocketsphinx. You can download a binary version here. You have to select the correct version with respect to your installation.
To determine which one you have to download, you can run the following commands, that will tell you which version you require and whether you run a 32 or 64 bit python interpreter.
"C:UserskrushAnaconda3python.exe" --version
"C:UserskrushAnaconda3python.exe" -c "import struct;print(struct.calcsize('P') * 8)"
Below are some commands that you may enter once you have downloaded the correct version
"C:UserskrushAnaconda3python.exe" -m pip install pocketsphinx‑0.1.3‑cp35‑cp35m‑win32.whl
"C:UserskrushAnaconda3python.exe" -m pip install pocketsphinx‑0.1.3‑cp36‑cp36m‑win_amd64.whl
answered Jun 12, 2017 at 19:23
3
I was also getting same error, while installing in ubuntu 16.04, I executed following commands:
sudo apt-get install -y python python-dev python-pip build-essential swig git libpulse-dev
sudo pip install pocketsphinx
source: pocketsphinx-python
answered Sep 12, 2018 at 11:33
Ramesh KumarRamesh Kumar
1,43814 silver badges16 bronze badges
In case you are working on anaconda navigator.
Just go to environment.
Search swig, your package will be displayed. Select the package and click on apply button.
It will also give a prompt list of other dependencies, which need to be installed with swig.
So just select all and click on apply button.
All the dependencies will be installed in your root directory of anaconda.
This worked for me, hope it helps.
answered Aug 6, 2019 at 13:51
There are few set of commands to resolve this. Just execute them:
sudo apt-get install -y python3 python3-dev python3-pip build-essential swig git libpulse-dev
sudo apt-get install libasound2-dev
sudo pip install pocketsphinx
answered Apr 29, 2019 at 7:19
what works for me is installing swing from conda and
conda install swig
if installed search where it is installed
where swig
then add that path to your environment variable
torayeff
8,98618 gold badges67 silver badges102 bronze badges
answered Sep 29, 2020 at 17:30
For mac users getting similar issues, there seems to be a problem with the current pip install framework. I followed this thread and used the solution linked. It doesn’t seem like there will be a pip fix anytime soon.
Note you’ll have to brew install swig before running the above steps — homebrew install link.
Dharman♦
29.3k21 gold badges80 silver badges131 bronze badges
answered Mar 31, 2021 at 14:49
pip install pipwin
python -m pipwin install pocketsphinx
You can also use pipwin to install pocketsphinx.
answered Jan 20, 2022 at 1:41
brandavbrandav
5733 silver badges9 bronze badges
For a purely pip-based fix (may or not work depending on your exact issue/system):
pip install swig
pip install pocketsphinx
pip freeze > requirements.txt
Fixed the issue simply for me. With pip freeze, you’re likely to not have the issue again if cloning the project in another system (since swig will be installed just with pip install -r requirements.txt)
This is the kind of things for which it becomes REALLY worthwhile to look into using virtualenv or similar, instead of polluting (and endlessly re-configuring) your system.
answered Jul 19, 2022 at 19:54
I know I am late, but what worked for me was to download the pre-built wheel file and install it manually (tested on Windows. I am pretty sure it will only work on Windows).
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pocketsphinx
Just grab the right one (cp39 = python 3.9). When it finishes downloading, navigate to your downloads folder in cmd, and issue the following command:
pip install pocketsphinx-0.1.15-cp39-cp39-win_amd64.whl
NOTE: Change pocketsphinx-0.1.15-cp39-cp39-win_amd64.whl to the name of the whl file you downloaded. I grabbed this one because I use Python 3.9 64bit version.
answered Jul 24, 2022 at 15:37
Содержание
- pyscard installation via pip fails on win7 x64 (missing dependencys?) #55
- Comments
- pyWinhook fails to build when installing PsychoPy 3.0.2 #2222
- Comments
- Установка python-модуля pocketsphinx: команда ‘swig.exe’ завершилась неудачно
- 5 ответов
- Failed building wheel for pocketsphinx #209
- Comments
- Установка модуля python для pocketsphinx: команда ‘swig.exe’ завершилась неудачно
- 5 ответов
pyscard installation via pip fails on win7 x64 (missing dependencys?) #55
i’m trying to install pyscard but pip installation fails. Seems like missing dependency’s(?)
OS Win 7-x64
Command: python -m pip install pyscard
Tested with Python 3.4.4-x64, 3.4.4-x86, 3.6.2-x64, 3.6.2-x86
Output from Pycharm
Output from CMD
1\AppData\Local\Temp\pi p-build-toq198jf\pyscard\setup.py’;f=getattr(tokenize, ‘open’, open)(__file__) ;code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, __file__, ‘exe c’))» install —record C:UsersLUCKYS
1AppDataLocalTemppip-4sq8kep9-record install-record.txt —single-version-externally-managed —compile: running install running build running build_py running build_ext building ‘smartcard.scard._scard’ extension swigging smartcard/scard/scard.i to smartcard/scard/scard_wrap.c swig.exe -python -outdir smartcard/scard -DWIN32 -o smartcard/scard/scard_wr ap.c smartcard/scard/scard.i error: command ‘swig.exe’ failed: No such file or directory Command «F:PythonPython3-4-4-x64python.exe -u -c «import setuptools, tokenize ;__file__=’C:\Users\LUCKYS
1\AppData\Local\Temp\pip-build-toq198jf\pyscar d\setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘ rn’, ‘n’);f.close();exec(compile(code, __file__, ‘exec’))» install —record C :UsersLUCKYS
1AppDataLocalTemppip-4sq8kep9-recordinstall-record.txt —sin gle-version-externally-managed —compile» failed with error code 1 in C:UsersL UCKYS
Swig.exe failed No such file or directory
I’ll guess this is some undocumented dependency?
http://www.swig.org/download.html This one? Which version?
The text was updated successfully, but these errors were encountered:
Источник
pyWinhook fails to build when installing PsychoPy 3.0.2 #2222
When performing developers install for PsychoPy 3.0.2 on Windows 10, the installation fails due to a pyWinhook build failure:
The text was updated successfully, but these errors were encountered:
Fixed by downloading SWIG and adding path of swig.exe to environment variables.
We previously didn’t have pyHook or pyWinhook listed as package requirements probably for this reason. : When py(Win)hook ‘s setup.py is called, it invokes swig to compile the C bindings.
For what it’s worth, I created conda packages, so in case you fancy using a conda environment, simply do conda install -c conda-forge pywinhook .
So this is not a bug, but simply the pyWinhook devs failing to provide wheels for modern Python distributions via PyPI, so pip is forced to compile it from source.
On another side node, you now probably ended up with a non-functional pyWinhook installation, as the latest release does not support Python 3… :S My conda package, however, contains the appropriate patch.
Luckily I didn’t change it in the standalone as far as I know (hoping it didn’t update and break itself automatically during build)!
(This was actually part of the things that made me wonder if we shouldn’t factor out the iohub deps into an extra , but there’s pros and cons for both approaches)
Luckily I didn’t change it in the standalone as far as I know (hoping it didn’t update and break itself automatically during build)!
If you installed it manually via a wheel or exe like always, I don’t think pip or setuptools would attempt to fetch / compile it again from the web, so all should be good I guess?
The pyWinhook maintainer has merged my PR adding Py3 support, and drafted a new release including wheels for Py 2.7 and 3.7: https://github.com/Tungsteno74/pyWinhook/releases/tag/1.6.0
Hope this will be published on PyPI soon.
I will try to build and upload a Py 3.6 build as well when I have time.
I believe this closes this issue!
Does this have any benefits over the pyHook that I was providing already? ie. Should I be updating the standalone to use this instead?
@peircej I don’t know where you acquired pyHook for Python 3, probably from https://www.lfd.uci.edu/
gohlke/pythonlibs/? Because there are no official releases supporting Py3. My patches have added Py3 support to pyWinhook and the maintainer published fresh wheels, so installing via PyPI should now be easier (no compilation required, at least for Py 3.7, but will add 3.6 soon too).
But to answer your question, I don’t think there would be much of a benefit for you to switch from pyHook to pyWinhook in standalone, as long as it works with Py3 anyway. – No benefit apart from you being able to pip install that dep for Py3 from PyPI and without compilation, that is.
Yes, I think I got it from gohlke
OK, will leave for now. thanks!
Py3.6 wheels now available from PyPI.
Meanwhile, pyWinhook 1.6.1 has been released. It contains fixes for unicode handling in window names, thereby providing an actual advantage over pyHook. Wheels for Python 2.7 and 3.7 are on PyPI, and I will publish Python 3.6 binaries tomorrow or so.
I am having problems installing PyWinHook using wheels. I get the following:
pyWinhook-1.6.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
The installation from the developer repo also fails because the PyWinHook build fails for reason above (swig).
Using Windows 10 64-bit
There are currently no Py3.6 wheels for pyWinhook 1.6.1 on PyPI (only for 2.7 and 3.7). I can try to publish some later tonight. In the meantime, you could use pyWinhook 1.6.0.
Ah I see. No worries. I will switch to Py3.7 and go from there.
@dvbridges I just published a Py3.6 wheel on PyPI.
@hoechenberger @peircej I just tried to install psychopy using pip on Python 2.7 and I have exactly this issue
pip printed the following
Collecting pyWinhook (from psychopy) Downloading https://files.pythonhosted.org/packages/a7/ec/f3a1190aa76f59a20ef7b8b9aebd1c60ffd0a9d4c1b5a18ce27cc1b34ae0/pyWinhook-1.6.1.zip
So is there a way I can skip this requirement, or install it another way with a different version?
EDIT:
I have never heard of wheels before but I see they are easy to install
But I got the same thing .
pyWinhook-1.6.1-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.
I am also running Windows 10 64-bit but I have installed 32-bit python.
I ended up getting swig and VC++ for python
if anyone needs the wheel for pyWinhook 1.6.1 for Python 2.7 Windows 32-bit:
https://gist.github.com/mpratt14/67a7418900566e58391b9be01fdcc9b4
Just now I tried running pip install PsychoPy on a fresh 3.9 Python distribution, which at first failed because I didn’t have the latest Microsoft BuildTools installed. After having done it, only one error remains, which seems to be related to pyWinhook.
It seems like their latest release doesn’t have a 3.9 wheel. could that be the reason? is there any workaround that? Thanks!
Источник
Установка python-модуля pocketsphinx: команда ‘swig.exe’ завершилась неудачно
Я получаю что-то вроде этого. Может кто-нибудь, пожалуйста, скажите мне, как это исправить.
5 ответов
Чтобы исправить проблему, я скачал Swig для Windows
Скопируйте файл swig.exe в папку установки Python (например, C: /python27)
Откройте папку swigwin-3.0.12/Lib и скопируйте все файлы *.swg в C: /python27/lib или эквивалентный путь к python
Откройте swigwin-3.0.12/lib/python и скопируйте все файлы в (C: /python27/lib)
(Также убедитесь, что у вас установлен компилятор Microsoft Visual C++ для Python)
Эти шаги работали на меня.
Вы пытаетесь установить pocketsphinx с pip , который скачает и скомпилирует этот модуль. Требуется некоторый инструмент компиляции, такой как swig .
Другим решением является установка двоичной версии pocketsphinx . Вы можете скачать бинарную версию здесь. Вы должны выбрать правильную версию относительно вашей установки.
Чтобы определить, какую из них вы хотите загрузить, вы можете выполнить следующие команды, которые сообщат вам, какая версия вам нужна, и используете ли вы 32- или 64-битный интерпретатор Python.
Ниже приведены некоторые команды, которые вы можете ввести после загрузки правильной версии.
Вместо того, чтобы копировать файлы Swig в папку Python, вы можете просто добавить расположение Swig в переменные среды:
- Нажмите Ctrl+S
- Введите env и нажмите Enter
- Двойной щелчок по Path
- Добавьте путь к Swig к последней пустой строке
- Нажмите OK и перезагрузите компьютер
Источник
Failed building wheel for pocketsphinx #209
I install the anaconda3,and use pip install textract in the cmd window.
However, the install is incomplete. This causes other codes to have problems with its invocation.
The warning is as follows:
Building wheels for collected packages: pocketsphinx
Running setup.py bdist_wheel for pocketsphinx . error
Complete output from command C:UserswAnaconda3python.exe -u -c «import setuptools, tokenize;file=’C:UserswAppDataLocalTemppip-build-l78y971lpocketsphinxsetup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» bdist_wheel -d C:UserswAppDataLocalTemptmplpi7yv4zpip-wheel- —python-tag cp36:
running bdist_wheel
running build_ext
building ‘sphinxbase._ad’ extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig.exe -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/win32 -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
error: command ‘swig.exe’ failed: No such file or directory
Failed building wheel for pocketsphinx
Running setup.py clean for pocketsphinx
Failed to build pocketsphinx
Installing collected packages: python-pptx, beautifulsoup4, six, EbookLib, chardet, docx2txt, xlrd, argcomplete, pocketsphinx, SpeechRecognition, textract
Found existing installation: beautifulsoup4 4.6.0
Uninstalling beautifulsoup4-4.6.0:
Successfully uninstalled beautifulsoup4-4.6.0
Found existing installation: six 1.11.0
Uninstalling six-1.11.0:
Successfully uninstalled six-1.11.0
Found existing installation: chardet 3.0.4
Uninstalling chardet-3.0.4:
Successfully uninstalled chardet-3.0.4
Found existing installation: xlrd 1.1.0
Uninstalling xlrd-1.1.0:
Successfully uninstalled xlrd-1.1.0
Running setup.py install for pocketsphinx . error
Complete output from command C:UserswAnaconda3python.exe -u -c «import setuptools, tokenize;file=’C:UserswAppDataLocalTemppip-build-l78y971lpocketsphinxsetup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:UserswAppDataLocalTemppip-rdnf9rb9-recordinstall-record.txt —single-version-externally-managed —compile:
running install
running build_ext
building ‘sphinxbase._ad’ extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig.exe -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/win32 -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
error: command ‘swig.exe’ failed: No such file or directory
Command «C:UserswAnaconda3python.exe -u -c «import setuptools, tokenize;file=’C:UserswAppDataLocalTemppip-build-l78y971lpocketsphinxsetup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:UserswAppDataLocalTemppip-rdnf9rb9-recordinstall-record.txt —single-version-externally-managed —compile» failed with error code 1 in C:UserswAppDataLocalTemppip-build-l78y971lpocketsphinx
The text was updated successfully, but these errors were encountered:
Источник
Установка модуля python для pocketsphinx: команда ‘swig.exe’ завершилась неудачно
Я получаю что-то вроде этого. Может кто-нибудь, пожалуйста, скажите мне, как это исправить.
5 ответов
Чтобы решить эту проблему, я загрузил глоток для окон
Скопируйте файл swig.exe в папку установки Python (например, C: / python27)
Откройте папку swigwin-3.0.12 / Lib и скопируйте все файлы * .swg в C: / python27 / lib или эквивалентный путь к python
Откройте swigwin-3.0.12 / lib / python и скопируйте все файлы в (C: / python27 / lib)
(Также убедитесь, что у вас установлен компилятор Microsoft Visual C ++ для Python)
Эти шаги сработали для меня.
Я не хотел делать всю эту настройку, которую предлагают другие люди, поэтому я попробовал это, и это сработало. Это, вероятно, работает, только если вы используете Anaconada.
Вы пытаетесь установить pocketsphinx с pip , который загрузит и скомпилирует этот модуль. Требуется некоторый инструмент компиляции, такой как swig .
Другое решение — установить двоичную версию pocketsphinx . Вы можете загрузить двоичную версию здесь. Вы должны выбрать правильную версию относительно вашей установки.
Чтобы определить, какую из них вы хотите загрузить, вы можете выполнить следующие команды, которые сообщат вам, какая версия вам нужна, и используете ли вы 32- или 64-битный интерпретатор Python.
Ниже приведены некоторые команды, которые вы можете ввести после загрузки правильной версии.
Я также получал ту же ошибку, при установке в Ubuntu 16.04 я выполнил следующие команды:
Существует несколько наборов команд для решения этой проблемы. Просто выполните их:
Источник
Dear Nicolay,
thankyou for directine me to the proper website.
pip install —upgrade pocketsphinx has a problem with swig:
running install
running build_ext
building ‘sphinxbase._ad’ extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig.exe -python -modern -Ideps/sphinxbase/include
-Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/win32
-Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c
swig/sphinxbase/ad.i
error: command ‘swig.exe’ failed: No such file or directory
…
—————————————-
Command «c:usersnickappdatalocalprogramspythonpython36-32python.exe
-u -c «import setuptools,
tokenize;__file__=’C:\Users\Nick\AppData\Local\Temp\pip-build-bgjm138n\pocketsphinx\setup.py’;f=getattr(tokenize,
‘open’, open)(__file__);code=f.read().replace(‘rn’,
‘n’);f.close();exec(compile(code, __file__, ‘exec’))» install —record
C:UsersNickAppDataLocalTemppip-2f7jg45j-recordinstall-record.txt
—single-version-externally-managed —compile» failed with error code 1 in
C:UsersNickAppDataLocalTemppip-build-bgjm138npocketsphinx
I already have a downloaded unzipped swig I don’t know what to do with.
Any ideas?
Nick
On 16 January 2018 at 00:18, Nickolay V. Shmyrev ***@***.***> wrote:
Some sites told me I needed sphinxBase first and maybe even WIG.before
pocketsphinx.
Do not read random sites, think with your brains instead and read the
package page:
https://pypi.python.org/pypi/pocketsphinx
No matching distribution is probably because you are trying to install
sphinxbase, pocketsphinx-python just provides python, sphinxbase is
included and should not be installed separately.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APFWFWGKXBYTJqMqiMmsTYhGLZax62wZks5tK-q7gaJpZM4RfE1b>
.
—
Nick «Mac» McElwaine
The instructions you are following appear to have been written for a previous version of Ubuntu. This leaves us with few options.
Option 1) Attempt installation with the currently available versions of the required packages. This approach fails as of the date of this edit due to the fact that liblink-grammar5-dev is currently unavailable and is required.
Installing liblink-grammar-dev doesn’t help either and also fails.
See Option 2:
It looks like liblink-grammar4 is unavailable for 17.04 (Zesty).
It seems that for more recent versions of Ubuntu it’s been replaced by liblink-grammer5. Usually dependencies call for a version to be equal or greater than a specific version so a newer version should work.
In order to install that you need to first enable the universe repository.
Then issue the command sudo apt install liblink-grammer5
If you (like me) get an error like:
No origin found for file us.archive.ubuntu.com_ubuntu_dists_zesty-updates_main_dep11_Components-amd64.yml.gz
Then you are likely impacted by this bug or something similar. I worked around this with the command appstreamcli refresh --force
If you still get an Unable to locate package error, you can download the package directly from here and install it via gdebi with sudo gdebi PackageName or in my case sudo gdebi liblink-grammar5_5.3.14-1_amd64.deb
Your output also contains an error locating the package swig. Since we’ve already enabled the universe repository in order to obtain liblink-grammer5 we need only to issue the command sudo apt install swig to obtain that package. Now that you’ve resolved what appear to be the dependencies you should be able to successfully pip install pylinkgrammar
Option 2)
Dual boot or virtualize 16.04 and install and run pylinkgrammer on a version of Ubuntu that still offers liblink-grammer4 and liblink-grammer4-dev.
I would expect either of these approaches to work once liblink-grammar5-dev is released for 17.04, but currently (since that has yet to occur, Option 2 is your best choice.
Я пытаюсь установить психопию и постоянно получаю какие-то ошибки.
При попытке установить его через pip или pycharm я получаю следующее:
running build_ext
building 'pyWinhook._cpyHook' extension
swigging pyWinhook/cpyHook.i to pyWinhook/cpyHook_wrap.c
swig.exe -python -o pyWinhook/cpyHook_wrap.c pyWinhook/cpyHook.i
error: command 'swig.exe' failed: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:UsersexemedPycharmProjectsuntitled2venvvenvScriptspython.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\exemed\AppData\Local\Temp\pip-install-3gqy6ttx\pywinhook_dfa44b41fdb7490dbae3492c6c94362e\setup.py'"'"'; __file__='"'"'C:\Users\exemed\AppData\Local\Temp\pip-install-3gqy6ttx\pywinhook_dfa44b41fdb7490dbae3492c6c94362e\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersexemedAppDataLocalTemppip-record-bscln1ihinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:UsersexemedPycharmProjectsuntitled2venvvenvincludesitepython3.6pyWinhook'
И когда я попытался сделать это в Google Colab, произошло следующее:
NoSuchDisplayException: Cannot connect to "None"
Ищете исправление для любой из этих сред

