I can't seem to get Tkinter to load up in the pip search menu. This is what I have done so far: view>python enviorments>updated/installed setuptools>pip search menu> input"Tkinter" with no luck.Please help, Thanks guys!
Tkinter should be installed by default, so there's no need to install it.
If you don't have it, open Programs and Features, find Python and select Change, then make sure that the Tcl/Tk option is selected.
Related
I've created a deployment script of the embeddable release of Python3 being used portable (understand without the need of installation on windows machines without administrative rights). The python this way is barebone. It has no modules. (see the method I used here)
Now we come to the problem at hand. I cannot figure out a way to install tkinter.
Different suggestions like python -m install tk or tkinter, python-tk, python3-tk, etc all fail. Actually tk installs some module that has nothing to do with tkinter.
I tried pulling out the tk installation from the official python installation still fail.
Does anyone have idea how could this be done?
I use Visual Studio Code both on my work Windows laptop, and on my Ubuntu PC at home.
There's a functionality that I can see from my Windows vscode that I'd like to have on my Ubuntu one as well, but can't find whether it's a setting, extension, or something else.
The functionality is this: python imports are highlighted in green, and if they are not used, they are dimmed.
Windows screenshot, how I want it to work:
Ubuntu screenshot, how it currently is:
Does anyone know where I should look? I'm using the same colour theme on both, Monokai.
Thanks!
You will get the linting warnings by pip installing flake8.
You also need to add this setting to your settings.json file:
"python.linting.flake8Enabled": true
I fixed it by installing the extension Settings Sync and syncing settings and extensions of my two installations.
If it was an extension indeed, it probably was fixed by removing the Python Extension Pack and installing Python for VSCode.
After searching everywhere on here I found some solutions to my problem. At first, the error was that I needed Visual C++ 14.0 and that I could get it from a link that didn't work. So, I downloaded Visual C++ Build Tools and got Visual C++ 14.0.23026. That did not solve the problem.
I did some more searching and found that I could install it using wheel. So, I got wheel and got the .whl file from here as shown in the comments of this
post, making sure to get the correct version for my python version (3.6). Running python -m pip install wordcloud-1.5.0-cp36-cp36m-win32.whl worked, it seemed.
However, after restarting Pycharm, the IDE I use to run python files, it still didn't import it correctly. ModuleNotFoundError: No module named 'wordcloud'.
What am I missing here? Thanks!
EDIT: It works outside of Pycharm (just double clicking my python file), but I'd still like it to work in Pycharm.
I have the same problem and I've solved it.
When you create a project, you should choose 'inherit global site-packages
Or
You can use the terminal in the Pycharm to install the wordcloud.
You can also install wordcloud by File->Settings->Project:your project name->Project interpreter.
I know that this is not a programming question. But it is stopping me programming.
I have installed Sublime Text 3. Now I am trying to install Package Control. My ultimate aim is to install the package which does syntax highlighting for CJSX files.
The problem is that when I install the Package Control manager this breaks Sublime Text 3. Specifically many menu items are missing. And the programme crashes. I keep going round in circles: install Sublime Text / it works / try to install Package Control (following both the console method or the manual method here: https://packagecontrol.io/installation) / Sublime Text breaks / uninstall - repeat.
It makes no difference how I install Sublime Text - manually with a tar file, using a .deb file, or using apt-get.
This is on Ubuntu 14.04.
Since a new version 3.1.0 of package control has been released a few hours ago, it could be a bug related to this version. I suggest you to post your bug on their issue tracker
Just visit this Link and execute the python code by opening command prompt
Ctrl+` for opening the command prompt, Both versions of Sublime Text(2/3) are provided there.
I'm trying to install Pygame and it returns me the following error "Python version 3.4 required which was not found in the registry". However I already have the Python 3.4.1 installed on my system. Does anyone know how to solve that problem?
I've been using Windows 8.1
Thanks in advance.
Are you using a 64-bit operating system? Try using the 32-bit installer.
Tips I can provide:
Add Python to your Path file in the Advanced settings of your Environmental Variables (just search for it in the control panel)
Something may have gone wrong with the download of Python, so re-install it. Also don't download the 64-bit version, just download the 32-bit version from the main pygame website
Once that's sorted out, transfer the entire Pygame file to the site packages in the Python directory and open up the pygame file and go to this directory in command prompt. Finally, run the Pygame setup from the command prompt which should be something like:
python setup.py
But this will only work if the pygame setup file is called setup.py (it's been a while since I downloaded it), you added Python to the Path file and you're currently in the correct directory in command prompt.
To test if it worked try importing pygame and see if you got an error or not.