- Manual Install Of Python Package Mac Os Download
- Install Os Python
- Mac Python 3.6
- Manual Install Of Python Package Mac Os X
- Nov 23, 2016 Installing Canopy on the mac is very similar to installing it on Windowsso I’ll let this post be your guide for installing Canopy. If you want to get into the nitty-gritty and install and configure python and the modules yourself, you can easily do so, but.
- Brew install python. Then try to install Taurus: sudo pip install bzt. Upgrading Taurus to latest on Mac OS is suggested as: sudo pip uninstall bzt && sudo pip install bzt. We suggest to avoid using -upgrade command with pip on Mac OS, since it does not work as.
Active1 year, 3 months ago
Jul 19, 2019 python Installing Python in macOS / Mac OS X. Otherwise, the best way to install Python 3 for macOS is to initially install a package manager called Homebrew. Homebrew has the benefit of making it easier for you to keep your Python installation up-to-date. First, we will look into how we can install Python using Homebrew.
I want to use the gntp module to display toaster-like notifications for a C/C++ software. I want to package all the dependencies for the soft to be self-executable on a another computer.
The gntp module is only available through the pip installer, which cannot be used (The computer which is running the soft do not have any internet connection) : how can I install it from the sources ?
I would prefer not to force the user to install easy_install/pip and manually add the pip path to the %PATH.
PS : I'm using Python 2.7 on a Windows machine.
Sheena9,42810 gold badges55 silver badges97 bronze badges
lucasglucasg8,2411 gold badge26 silver badges49 bronze badges
3 Answers
- Download the package
- unzip it if it is zipped
- cd into the directory containing setup.py
- If there are any installation instructions contained in documentation contianed herein, read and follow the instructionsOTHERWISE
- type in
python setup.py install
You may need administrator privileges for step 5. What you do here thus depends on your operating system. For example in Ubuntu you would say
sudo python setup.py install
EDIT- thanks to kwatford (see first comment)
To bypass the need for administrator privileges during step 5 above you may be able to make use of the --user flag. In this way you can install the package only for the current user.
Mac cosmetics product knowledge manual. The docs say:
Files will be installed into subdirectories of site.USER_BASE (written as userbase hereafter). This scheme installs pure Python modules and extension modules in the same location (also known as site.USER_SITE). Here are the values for UNIX, including Mac OS X:
Manual Install Of Python Package Mac Os Download
More details can be found here: http://docs.python.org/2.7/install/index.html
cpCopy a file. Mac terminal command manual.
SheenaSheena9,42810 gold badges55 silver badges97 bronze badges
To further explain Sheena's answer, I needed to have setup-tools installed as a dependency of another tool e.g. more-itertools.
Download
Click the Clone or download button and choose your method. I placed these into a
dev/py/libs
directory in my user home directory. It does not matter where they are saved, because they will not be installed there.- setuptools:https://github.com/pypa/setuptools
- more-itertools:https://github.com/erikrose/more-itertools
Installing setup-tools
You will need to run the following inside the setup-tools directory.
General dependencies installation
Now you can navigate to the more-itertools direcotry and install it as normal.
- Download the package
- Unpackage it if it's an archive
- Navigate (
cd ..
) into the directory containingsetup.py
- If there are any installation instructions contained in the documentation contained herein, read and follow the instructions OTHERWISE
- Type in:
python setup.py install
18.3k8 gold badges50 silver badges93 bronze badges
Even though Sheena's answer does the job,
pip
doesn't stop just there. From Sheena's answer:
- Download the package
- unzip it if it is zipped
- cd into the directory containing setup.py
- If there are any installation instructions contained in documentation contained herein, read and follow the instructions OTHERWISE
- type in
python setup.py install
At the end of this, you'll end up with a
.egg
file in site-packages
.As a user, this shouldn't bother you. You can import
and uninstall
the package normally. However, if you want to do it the pip
way, you can continue the following steps.Install Os Python
In the
site-packages
directory,unzip <.egg file>
- rename the
EGG-INFO
directory as<pkg>-<version>.dist-info
- Now you'll see a separate directory with the package name,
<pkg-directory>
find <pkg-directory> > <pkg>-<version>.dist-info/RECORD
find <pkg>-<version>.dist-info >> <pkg>-<version>.dist-info/RECORD
. The>>
is to prevent overwrite.
Now, looking at the
John StroodJohn Stroodsite-packages
directory, you'll never realize you installed without pip
. To uninstall
, just do the usual pip uninstall <pkg>
. 8252 gold badges14 silver badges28 bronze badges
Not the answer you're looking for? Browse other questions tagged pythoninstallationpipgrowl or ask your own question.
Install Homebrew
Add PATH to
~/.bash_profile
and ~/.zshrc
Install Python
Install helpful modules
QT for Python
For QT integration you need to download QT SDK and then PyQT
After installing pyqt, Homebrew will prompt you to add the following to your .bash_profile:
Keep installing dependences for PyQT
Setting up Sublime
- Edit Python paths.
Sublime >> Preferences.. >> Browse Packages..
- Click on
Python/Python.sublime-build
- Install PackageControl. The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+
shortcut or the
View > Show Console menu`. Once open, paste the appropriate Python code for your version of Sublime Text into the console.
- Modify the code to point to the right brew paths. Ex:
Mac Python 3.6
Python Autocompletion with SublimeCodeIntel
Manual Install Of Python Package Mac Os X
Once you install Package Control, restart ST2 and bring up the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows). Select 'Package Control: Install Package', wait while Package Control fetches the latest package list, then select SublimeCodeIntel when the list appears. The advantage of using this method is that Package Control will automatically keep SublimeCodeIntel up to date with the latest version.