During the installation of Odoo 10 on MAC.
I was unable to install the package PyPDF2, further Homebrew failed to find those package, so does this mean it is not available for MAC or should I install any alternate package.
Poppler for Mac — If HomeBrew already installed, can use brew install Poppler; pdftotext— Python module. Wraps the poppler pdftotext utility to convert PDF to text. Steps: Install Poppler. For windows, Add “xxx/bin/” to env path; pip install pdftotext; Usage (sample code from pdftotext github).
Any suggestions appreciated.
2 Answers
Found the solution,
1. Install python3 (although 2.7 was already installed, but after installing python3 seemed to do wonders)
2. then install PyPDF2 (or simply run the command to install requirement.txt)
Infact if python3 is installed in the first place, then one can easily ran the single-command to install all those dependencies present in the requirement.txt
![]()
It is strange enough trying to install Odoo on a Mac. But if you are really looking for extraordinary experiences, you also have to spend extraordinary efforts. I'm very sure that you did already extensive research on installing pypdf2 on OSX and you have already found results such as this: https://stackoverflow.com/questions/25224260/pypdf2-wont-import. What exactly is your problem now? Please be more specific.
As a popular open source development project, Python has an activesupporting community of contributors and users that also make their softwareavailable for other Python developers to use under open source license terms.
This allows Python users to share and collaborate effectively, benefitingfrom the solutions others have already created to common (and sometimeseven rare!) problems, as well as potentially contributing their ownsolutions to the common pool.
This guide covers the installation part of the process. For a guide tocreating and sharing your own Python projects, refer to thedistribution guide.
Note
For corporate and other institutional users, be aware that manyorganisations have their own policies around using and contributing toopen source software. Please take such policies into account when makinguse of the distribution and installation tools provided with Python.
Key terms¶
Changed in version 3.5: The use of
venv is now recommended for creating virtual environments.
See also
Basic usage¶
The standard packaging tools are all designed to be used from the commandline.
The following command will install the latest version of a module and itsdependencies from the Python Packaging Index:
Note
For POSIX users (including Mac OS X and Linux users), the examples inthis guide assume the use of a virtual environment.
For Windows users, the examples in this guide assume that the option toadjust the system PATH environment variable was selected when installingPython.
It’s also possible to specify an exact or minimum version directly on thecommand line. When using comparator operators such as
> , < or some otherspecial character which get interpreted by shell, the package name and theversion should be enclosed within double quotes:
Normally, if a suitable module is already installed, attempting to installit again will have no effect. Upgrading existing modules must be requestedexplicitly:
More information and resources regarding
pip and its capabilities can befound in the Python Packaging User Guide.
Creation of virtual environments is done through the
venv module.Installing packages into an active virtual environment uses the commands shownabove.
See also
How do I …?¶
These are quick answers or links for some common tasks.
… install
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |