Python Forum
Install pdftables-api - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Install pdftables-api (/thread-30591.html)

Pages: 1 2


Install pdftables-api - MagicTrees - Oct-27-2020

Hi

I am a new users of python and I am trying to install the packages from the pdftables-api but it doesn't work.

It mentioned in the website to use this command :

pip install git+https://github.com/pdftables/python-pdftables-api.git
But i have this error : SyntaxError: invalid syntax

Can someone explain me how it works ?

Thank you.


RE: Install pdftables-api - bowlofred - Oct-27-2020

Can you show the entire error message?

What is the output of pip -V


RE: Install pdftables-api - Larz60+ - Oct-27-2020

Normally, you would just use: pdf install pdftables
But relative to usable package age, this package is ancient (2014)
and will not install in python 3


RE: Install pdftables-api - bowlofred - Oct-27-2020

The Pypi "pdftables" is a different (and as you mentioned, old) project. pdftables-api is separate and has updates this year. Pip should be able to install packages that are not uploaded to Pypi.


RE: Install pdftables-api - Larz60+ - Oct-27-2020

Quote:bowlofred
pdftables-api is separate and has updates this year.

I don't see pdftables-api in pypi is that the name?


RE: Install pdftables-api - bowlofred - Oct-27-2020

It's not in Pypi that I'm aware of. That's why he's attempting to use the (valid) alternate installation directly from a git repo.

https://github.com/pdftables/python-pdftables-api

Pip documentation: https://pip.pypa.io/en/stable/reference/pip_install/#git


RE: Install pdftables-api - MagicTrees - Oct-28-2020

(Oct-27-2020, 10:51 PM)bowlofred Wrote: It's not in Pypi that I'm aware of. That's why he's attempting to use the (valid) alternate installation directly from a git repo.

https://github.com/pdftables/python-pdftables-api

Pip documentation: https://pip.pypa.io/en/stable/reference/pip_install/#git

You're right, That is I'm trying to do, to install from git repository but I don't know how to do this. Usually I go to the preferences of pycharm to install a packages. But it's not available.


RE: Install pdftables-api - bowlofred - Oct-28-2020

Did you see the second message in this thread asking you for more information?


RE: Install pdftables-api - MagicTrees - Oct-30-2020

(Oct-28-2020, 05:10 PM)bowlofred Wrote: Did you see the second message in this thread asking you for more information?

Here, the entire error message :

  File "C:/Users/Magic/PycharmProjects/pythonProject1/main.py", line 2
    pip install -e git+https://github.com/pdftables/python-pdftables-api.git
        ^
SyntaxError: invalid syntax

Process finished with exit code 1



RE: Install pdftables-api - bowlofred - Oct-30-2020

pip install isn't a python command to be run in a python program. It's a program to be run from your command line (just like python itself is).

Run it from your C:\ prompt.