Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I tried removing virtual directory named virtualenvs that i created for a Django project using rmdir ~/.virtualenvs but its not working properly , i want to delete whole virtual directory so that i can setup new one and can remove old project that are saved in virtualenvs folder. I am attaching the screenshot:
You can use rm -rf to remove a directory and all its contents:
$ rm -rf ~/.virtualenvs
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Imagine having to write python code to be submitted to a remote Ubuntu box to be run there (you do not get to touch the terminal, you do not get to install anything or run apt to query what's installed). How would you go about figuring out what python packages are likely available on that machine by default (i.e. what does a complete Ubuntu install include, not what can I download and install later). I'm having the hardest time finding something like a "list of all packages installed by default" or some such thing. Is there such a thing? Or do I have to download an image and actually install it just to find out what's in the box?
Go to http://releases.ubuntu.com/ and select the specific version of Ubuntu. Then download the ".manifest" file (there can be more than one, e.g. desktop and server). For example here is one recent file:
http://releases.ubuntu.com/20.04.1/ubuntu-20.04.1-live-server-amd64.manifest
Grep that for "python" and you'll see most of the relevant parts. Some selected highlights from the above link:
python3 3.8.2-0ubuntu2
python3-automat 0.8.0-1ubuntu1
python3-blinker 1.4+dfsg1-0.3ubuntu1
python3-colorama 0.4.3-1build1
python3-configobj 5.0.6-4
python3-dbus 1.2.16-1build1
python3-idna 2.8-1
python3-jinja2 2.10.1-2
python3-jsonschema 3.2.0-0ubuntu2
python3-more-itertools 4.2.0-1build1
python3-oauthlib 3.1.0-1ubuntu2
python3-requests 2.22.0-2ubuntu1
python3-simplejson 3.16.0-2ubuntu2
python3-six 1.14.0-2
python3-twisted 18.9.0-11
python3-urllib3 1.25.8-2
python3-yaml 5.3.1-1
python3-zope.interface 4.7.1-1
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I installed python 3.7 and would like to add it to the system paths, so that a am able to use the python comand everywere on my system.
I added the path of the folder to the system path but I still canntot use python comands ouside the directory.
I added this to the system variables path: C:\Python37
A few things.
First, modern Python typically wants to install into C:\Program Files\Python37--are you certain about C:\Python37 being the path?
Second, did you add it to the system path using the dialog? If you did, did you restart your command line session? The command line won't pick up the new path until you restart it.
Finally, you'll also want to add the Scripts directory to the path too (C:\Python37\Scripts).
– John Szakmeister
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Hi there I have a router with OpenWrt and to enable a Startupscript, I first have to create the script.
I needt to create it in /etc/init.d/
The script is called swapon. So when I enter /etc/init.d/swapon I enter VI mode and type the script
Then I exit editing mode and type :w to save
Then it says 'error no such file or directory'
So how to create this script and let it save?
Please help.
You need to be root to edit things in /etc/. Try the following:
Make sure sudo is installed
Edit the file using sudo vi /etc/init.d/swapon
If it still complains, create the file first using sudo touch /etc/init.d/swapon
Finally, make sure the directory exists - if not, use sudo mkdir /etc/init.d
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm following a Flask tutorial, in which I created a virtual environment to run the application.
To run the file, it asks me to run this command:
./run.py
as opposed to:
python run.py
What does the ./ do exactly and why is it necessary?
It is used because the current directory is not in $PATH. And the reason why it is not in the current directory on that list is security.
So in simple terms you can say that the ./ says 'search in the current directory for my script rather than searching at all the directories specified in $PATH'.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have this warning during installation plone:
$ bin/buildout
While:
Installing.
Loading extensions.
Error: Buildout now includes 'buildout-versions' (and part of the older 'buildout.dumppickedversions').
Remove the extension from your configuration and look at the 'show-picked-versions' option in buildout's documentation.
How to fix it?
If you are using Buildout 2.x or higher, remove buildout.dumppickedversions from extensions e.g.:
[buildout]
extensions =
# We don't need this in 2.x:
# buildout.dumppickedversions
Or use Buildout 1.7.x:
$ curl -O https://raw.github.com/buildout/buildout/1/bootstrap/bootstrap.py
$ bin/python bootstrap.py