I'm trying to install SublimeREPL on an offline computer (it has secure data and so can't be Internet-connected). Any ideas for how to do so?
I can copy any installation files to a USB drive, but haven't found any--everywhere I've seen insists on using the Package Manager (which requires connection to function properly)
You could try download and install SublimeREPL using Package Control on a computer with an internet connection and then in Sublime Text go to preferences > Browse packages… where you should find a folder named SublimeREPL. Copy that folder to the same directory on the other computer. That should work.
Related
So I am just beginning to learn Python and I was wondering whether it is possible to install a package onto a USB drive instead of onto the device itself. I wanted to download a package but I didn't have enough storage to install it. So I put the project into a USB drive and opened the project and tried to download the package hoping it would use the storage in the USB, which it didn't. Is there a way to do this or do packages need to take up the storage of the device instead? For context, I am using PyCharm.
I tried to look for advice on youtube and here, but I can't seem to find any, or I just do not know what to look for. Any help would be appreciated, thanks!
Packages are installed in the base environment of Python itself, not in your project.
I think you can achieve your goal by creating a new virtual environment on your USB drive. Then install all the required packages into that virtual environment and run your code.
In the bottom right of PyCharm you probably see "Python 3.x ...". Click on that, then "New Interpreter" > "Add Local Interpreter". This brings up the environment menu, in which you can indicate where a new environment should be created, and with which manager. I prefer Conda, but Virtualenv should work fine for you. Once that is set up you can install the packages from PyCharm as long as this new environment is activated (indicated in the bottom right of the main screen).
I am trying to download and run Python and PyCharm off of a usb stick because I am a newbie and suck with remembering all the OS specific setup, so the code I work on at work, does not work on my home computer.
When I try to run python.exe from the usb drive, I get the error "Windows cannot access the specified device path or file you may not have appropriate permissions". I am local admin and can open folders, just not run the exe.
Any help would be greatly appreciated
TL;DR I want a centralized place for all of my code to be neatly and easily stored, retrieved, edited, and tested.
use python virtualenv
pip install virtualenv
python -m virtualenv mypython
It will generate a 'new' python (mypython) that you may copy into your USB stick.
Read the documentation here.
Try Portable Python.
Python virtualenv use your installed python that's why you can't share it using usb stick or add it on your github repository.
I have a windows machine which has no connection to the internet. It's also not possible to connect this machine to the internet due security reasons.
How can I install PyDev without internet connection?
From PyDev use SourceForge download and install manually via these instructions:
Installing with the zip file
The available locations for the zip files are:
Sourceforge download
After downloading the zip file:
Eclipse 3.4 onwards
Extract the contents of the zip file in the eclipse/dropins folder and restart Eclipse.
Before Eclipse 3.4
Extract the contents of the zip file on top of Eclipse, making sure the plugins folder is extracted on top of the
eclipse/plugins folder and the features is on top of the eclipse/features folder.
After that, restart Eclipse with the '-clean' flag, so that Eclipse finds out about it.
use http://www.liclipse.com. It has PyDev builtin and easy to install.
I have a problem with the following command:
setup.py install.
I know it should work, I have tried it on a laptop but I don't have access to it at the moment. I need to complete a homework so I tried the same on my PC. And when I type the same command into cmd it just runs pyscripter as if I would use right click on setup.py and click edit with pyscripter. It does nothing else. I am sure that I am in the right folder in cmd.
My python version is 2.7 and my pyscripter version is v2.5.3. My OS is win7. I have tried to install other modules but I get the same response.
Has anyone encountered the same problem? I have searched the internet but I haven't found any answers to this problem.
Assuming that you installed Python 2.7 in the default folder i.e. c:\python27, then you can type:
c:\python27\python setup.py install
Wherever you installed it, you should append that path to your PATH variable (you'll need to log on as an admin to do that).
Do python setup.py install instead.
Windows is probably not set up to recognize .py files as executable.
Recently our class at school used all of the above programs. about a handful of students had trouble installing like you described. Fortunally I didnt not have this problen but I can suggest you use Administration priviledges.
Make sure you download the correct version.
Go to your download folder and look at the file you have downloaded (do this via my computer not from your web browser)
Right click on the file and then click run as an administrator
Here is an awesome site for windows binaries: http://www.lfd.uci.edu/~gohlke/pythonlibs/
If the library you need is there, just download and install like any other windows program...
I have a latest windows netbeans version (6.9.1) and i want to instal a python plugin for it. I have no problems on a computer that has internet connection, it's just tools->plugins->Available. But i have another computer that don't have internet connection available :(. Is it possible to install python addin for it? Where i can download the .nbm file?
Check:
/home/username/netbeans-6.9.1/php/update/download
I tested it with the php plugin so you should check the python directory. Or if you are using windows you may find somewhere similar.
If no .nbm file there, you may try:
Uninstall python plugin from the other computer, and reinstall it. Don't restart NetBeans immediately, check the directory, and copy all the files.
Click Tools -> Plugins, and in the plugin dialog box, click the "Downloaded" tab. On that tab, click the "Add Plugin" button, which will open a file browser dialog box, allowing you to give Netbeans the location of your downloaded .nbm file. Easy!
You can find Netbeans plugins here: http://plugins.netbeans.org/PluginPortal/