I've managed to install pymol on windows following the instructions here and using the file Pmw‑2.0.1‑py2‑none‑any.whl from here
Various folders have appeared in C:\Users\Python27\Lib\site-packages (Pmw and Pmw-2.0.1.dist-info). However, I can't actually work out how to run pymol.
It used to be provided as a .exe format which could just be run in the usual way for windows applications. The folders that have installed just contain lots of python scripts, but I can't find anything which actually launches the programme.
That's probably not the official way but it works :)
Download both the appropriate pymol and pymol-launcher file.
Install pymol via pip
change file extention of pymol-launcher to .zip (or unzip it straight)
get pymol.exe and make sure to have either pymol##.dll (## is your version number) in your path or in the same directory
Did it work for you?
I took another approach. NOTE! I am using Anaconda2 (python 2.7.13) under Windows 8.1
First download the appropriate files from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymol
Pmw-2.0.1-py2-none-any.whl
pymol-1.8.6.1-cp27-cp27m-win_am d64.whl
pymol_launcher-1.0-cp27-cp27m-win_amd64.whl
Start Command Prompt (Admin) via right-click on windows start button and navigate to your python installation directory
Enter the following lines (adapt to your installation of python)
C:\Users\David\Anaconda2>Scripts\pip.exe install Pmw-2.0.1-py2-none-any.whl
C:\Users\David\Anaconda2>Scripts\pip.exe install pymol-1.8.6.1-cp27-cp27m-win_am d64.whl
C:\Users\David\Anaconda2>Scripts\pip.exe install pymol_launcher-1.0-cp27-cp27m-win_amd64.whl
Now just launch pymol via pymol.exe that was created in the same directory.
Related
Just gone through the process of setting up python and all the installs using cmd and now i want to use
brownie bake
To clone some code and it gives errors as it cant locate brownie... I've set environmental variables for the path (that's how I got it to work in cmd)... I've installed the python extension and chose the python.exe file in my new install in the compiler by clicking the bottom left... How can I make visual studios Code use only the python and all library's I installed?
if i run
python
in the terminal it opens up windows store for python install but i can run my version by using
py
First, Disable the python command to open the windows store:
Search Manage app execution aliases and unselect App Installer of Python:
Second, You need to check which python you have installed your packages to:
And make sure in the VSCode you have selected the right interpreter(In the following picture, they are different).
I'm learning python and use VS Code as the editor and when I try to run the .py file I get the following message ,
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
3 Ways to solve this :-
If Python is not installed,then install it from python.org
If its already installed then it might not have been added to path.
To add python to path, search for environment variables in search bar, then edit the path option and add the python installation directory location there.
OR you may just re-install python from python installer and tick the "add python to path" option
Plus I would not recommend using windows store version of python. Just use normal python installer from python.org
I have been attempting to install the Pillow (PIL) module into my python(3.8.2) using Windows 10 to no success.
I have tried executing pip install Pillow as mentioned by the website in my cmd but both pip and python are 'not recognised as an internal or external command, operable program or batch file'
What I have tried:
Reinstalled both pip and python and tried again, with the same problem.
Using powershell instead of command prompt (not sure if that makes any difference).
Also I understand you can download the Pillow module package in .whl, but I couldn't work out how to install it that way.
I have also installed pygame using the cmd before which baffles me as to why this is happening.
Any and all help is appreciated, Thank you!
If you're sure that you've successfully installed python, but it's not working on your commandline, it may not be in your PATH. Open the search in the windows start menu, and type "env" and click on "Edit Environmental Variables for your system (or choose account if you don't have admin on the system). If you chose system, click on the environmental variables button. You will then be greeted by one window split into two menus, User Variables and System Variables. Scroll down in the User variables and double click on Path.
Go find the location of your python install with the python.exe file in it (you could search for it in your C:\ if you're willing to wait). Add that path to the Path variable list.
If you can't find the python.exe or just don't want to wait, reinstall your python installation and look for a checkbox with "Add to Path" or something along those lines.
In addition to the python.exe being in your path, make sure to add the "Scripts" folder in your path. It should be a subfolder in the same folder as python.exe.
For windows 10 install PIL and cImage.
Install Python 2.7.8 (64-bit — this is important)
https://www.python.org/ftp/python/2.7.8/python-2.7.8.amd64.msi
Install Python 3.4.1 (64-bit — this is important)
https://www.python.org/ftp/python/3.4.1/python-3.4.1.amd64.msi
Download and install Pillow for Python 2
https://pypi.python.org/packages/2.7/P/Pillow/Pillow-2.5.3.win-amd64-py2.7.exe#md5=33c3a581ff1538b4f79b4651084090c8
Download and install Pillow for Python 3
https://pypi.python.org/packages/3.4/P/Pillow/Pillow-2.5.3.win-amd64-py3.4.exe#md5=6ee659d7b945e826a07c53c15578424f (direct link)
https://pypi.python.org/pypi/Pillow/ (all other versions)
Download and install cImage
Navigate to https://github.com/bnmnetp/cImage
Click cImage.py, and click the button labeled Raw to see the contents of the file.
Click File > Save Page As (Chrome & Firefox) or File > Save As (Safari) to save the file on your computer.
Copy “cImage.py” from where you saved it to C:\Python27\Lib\site-packages and C:\Python34\Lib\site-packages\
I'm making a Simple GUI Tkinter Program. I was going to compile my Program (with Pyinstaller) but Avast is blocking PIP. So I ignored it. When Compile was Finished.
I run the compiled .exe program and the program are saying:
failed to execute the script, Avast is blocking.
How to fix this error and What am the issue?
edit:now Avast is not blocking .exe(but blocking PIP)
I use avast as well. Avast sandboxes pipenv when installing a new package. Depending on what/if virtualenv your using.
You can whitelist/exclude python's install directory. For windows the default location is %localappdata%\Programs\Python. This is also where pip is installed globally as well as pyinstaller and other packages that are installed globally.
Be warned this will make it so avast no longer scans anything related to python in those directories. So if you're worried about getting a virus from a python package then you can whitelist/exclude the pip exe itself which is located specifically...
32-bit Python 3.8
%localappdata%\Programs\Python\Python38-32\Scripts\pip.exe
64-bit Python 3.8
%localappdata%\Programs\Python\Python38\Scripts\pip.exe
If you use a virtualenv whitelist/exclude those directories since those virtualenvs use a local copy of pip instead of the global one. That should fix avast messing with pip/virtualenv/pipenv
Just to mention it according to the steps found in https://support.avast.com/en-gb/article/Antivirus-scan-exclusions/ you need to do the following to get pip whitelisted on Avast:
STEPS
Open Avast Antivirus and go to ☰ Menu ▸ Settings.
Select General ▸ Exceptions, then click Add exception.
Add an exception in one of the following ways:
Type the specific file/folder path or URL into the text box, then click Add exception.
Click Browse, tick the box next to a file or folder, For example in x64 system: HOME_DIRECTORY\AppData\Local\Programs\Python\Python39\Scripts\pip.exe (depending on your version of python), then click OK.
Click Add Exeption
Your specified files, folder, or website is added to the exceptions list.
NOTE: You can select or add multiple files so its good to select pip.exe and pip3.exe and pip39.exe, depending on what python version you are using and what pip files you have in the folder
I am running Ubuntu 14.04/GNOME 3.8.4 on 15 MBP Duel Boot.
I am new to Linux and Python(Pycharm ide)
I have downloaded the Pycharm "files" from the software center
but cannot run the program.The icon comes up in the side bar but when i click it nothing happens. I have tried "./" and only the code appers in "gedit" Please help Oracle java is already installed
Alternatively, after extracting your pycharm.tar.gz,
add the following in .bashrc file (which is in home folder itself, to view hidden files use ctrl+h)
alias pycharm='~/tools/pycharm-4.0.6/bin/./pycharm.sh'
OR In your case it might be,
alias pycharm='~/Downloads/pycharm-4.0.6/bin/./pycharm.sh'
And, then restart the terminal and type,
pycharm foldername
It should open the pycharm with given folder.
hi Pedro in ubuntu you need to install the files using the command prompt even if you downloaded the files you need to install them using command, unlike windows in linux when some software is downloaded you need to install them manually by using commands like sudo apt-get python install..
for further help you can consult http://linuxg.net/how-to-install-pycharm-3-4-on-ubuntu-14-04-linux-mint-17-pinguy-os-14-04-and-other-ubuntu-14-04-derivatives/