Q_CreationDate stringlengths 23 23 | Title stringlengths 11 149 | Question stringlengths 25 6.53k | Answer stringlengths 15 5.1k | Score float64 -1 1.2 | Is_accepted bool 2
classes | N_answers int64 1 17 | Q_Id int64 0 6.76k |
|---|---|---|---|---|---|---|---|
2015-02-04 17:36:50.273 | Running Python 3 from Light Table | I am trying Light Table and learning how to use it. Overall, I like it, but I noticed that the only means of making the watches and inline evaluation work in Python programs uses Python 2.7.8, making it incompatible with some of my code. Is there a way to make it use Python 3 instead?
I looked on Google and GitHub and ... | I had the same problem with using a syntax that was only valid on Python3.3.
- Go to Settings:User Behaviour
- add the line (find the real path of your python binary):
[:app :lt.plugins.python/python-exe "/usr/bin/python3.4"]
- Save and test in your lighttable
It worked for me :)
Hope it helps | 1.2 | true | 3 | 3,569 |
2015-02-05 09:21:04.480 | How to install python weka wrapper on ubuntu 32 bit? | The official website shows how weka-wrapper can install on ubuntu 64 bit. I want toknowhow it can be install on ubuntu 32 bit? | Before installing weka wrapper for python you are suppose to install the weka itself using sudo apt-get install weka or build from source code and add the path the enviroment variable using export wekahome="your weka path" this will make sure you have the required weka jar file in the directory | 0 | false | 1 | 3,570 |
2015-02-07 16:26:18.777 | Create a numpy array (10x1) with zeros and fives | I'm having trouble figuring out how to create a 10x1 numpy array with the number 5 in the first 3 elements and the other 7 elements with the number 0. Any thoughts on how to do this efficiently? | Just do the following.
import numpy as np
arr = np.zeros(10)
arr[:3] = 5 | 0.067922 | false | 1 | 3,571 |
2015-02-07 23:46:17.510 | python - How to share files between many computers | My python process run on different machines. It consists of a manager and many workers. The worker in each machine are multi threaded and needs to update some data such as its status to the manager residing on another machine. I didn't want to use mysql because many other processes are already executing many queries o... | Okay, first point is that you can't share memory among machines unless you're on a very specialized architecture. (Massively parallel machines, Beowulf clusters, and so on.)
If you mean to share code, then package your code into a real Python package and distribute it with a tool like Chef, Puppet or Docker.
If you mea... | 0.386912 | false | 1 | 3,572 |
2015-02-09 19:34:23.103 | How import dataset from S3 to cassandra? | i Launch cluster spark cassandra with datastax dse in aws cloud. So my dataset storage in S3. But i don't know how transfer data from S3 to my cluster cassandra. Please help me | The details depend on your file format and C* data model but it might look something like this:
Read the file from s3 into an RDD
val rdd = sc.textFile("s3n://mybucket/path/filename.txt.gz")
Manipulate the rdd
Write the rdd to a cassandra table:
rdd.saveToCassandra("test", "kv", SomeColumns("key", "value")) | 1.2 | true | 1 | 3,573 |
2015-02-10 01:19:45.890 | Mac OSX Trouble Running pip commands | I recently installed Python 3.4 on my Mac and now want to install Django using pip. I tried running pip install Django==1.7.4 from the command line and received the following error:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-6.0.8-py2.7.egg/pip/basecommand.py", line ... | Try to create a virtual environment. This can be achieved by using python modules like venv or virtualenv. There you can change your python path without affecting any other programs on your machine. If then the error is is still that you do not have permission to read files, try sudo pip install. But only as a last res... | 0 | false | 2 | 3,574 |
2015-02-10 01:19:45.890 | Mac OSX Trouble Running pip commands | I recently installed Python 3.4 on my Mac and now want to install Django using pip. I tried running pip install Django==1.7.4 from the command line and received the following error:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-6.0.8-py2.7.egg/pip/basecommand.py", line ... | Try adding sudo. sudo pip install Django | 0 | false | 2 | 3,574 |
2015-02-11 00:08:18.797 | numpy.loadtxt: how to ignore comma delimiters that appear inside quotes? | I have a csv file where a line of data might look like this:
10,"Apple, Banana",20,...
When I load the data in Python, the extra comma inside the quotes shifts all my column indices around, so my data is no longer a consistent structure. While I could probably write a complex algorithm that iterates through each row an... | While there is not such a parameter in numpy.loadtxt to ignore quoted or otherwise escaped commas, one alternative that has not been suggested yet would be the following...
Perform a find and replace using some text editor to replace commas with tabs
OR
save the file in Excel as tab delimited.
When you use numpy.loadtx... | 0 | false | 1 | 3,575 |
2015-02-11 10:01:45.047 | How to cast type of gdb.value to int | I want to cast in python code a gdb.value which is a complicated type variable to int (this is not general type, but defined in the our code - a kind of bitfield).
When I promped in the gdb shell itself:
"p var"
it prints it as int, i.e. the gdb know how to cast that bitfield to int.
(Strange thing, in addition, I ... | I had trouble with int(value) giving me a signed number even when the type was explicitly unsigned. I used this to solve the problem:
int(value) & 0xffffffffffffffff | 0.201295 | false | 1 | 3,576 |
2015-02-11 14:13:15.147 | Python dependencies: Merging two packages into one | I have two python packages A and B that I would like to merge together into A, i.e. all functionality of B is now reachable in A.B. Previously, A-1.0 depended on B-1.0. Now I want to avoid, that users of A-2.0 still have B-1.0 installed and I don't know how to handle this properly.
Different solutions/ideas I came up w... | I think, you can't! (at least without using such tricks, as you described).
The Python package system has (to my knowledge) no such notion as "allowed" packages. There could be a person, that invents a different package C that he calls B, but with totally different functionality. Such a notion would prohibit users of y... | 1.2 | true | 1 | 3,577 |
2015-02-12 01:08:56.970 | Is CapeDwarf compatible with Python GAE? | I'm trying to deploy my GAE application - written with Python - on CapeDwarf (WildFly_2.0.0.CR5).
But all the documentation talking only about Java Application.
So is CapeDwarf can deploy Python Application ?
if it is, how to do it ?
else any other application that can ? | Yes, as Alex posted - CapeDwarf is Java only. | 0.201295 | false | 1 | 3,578 |
2015-02-13 07:36:31.407 | django modelform display blank for null | In django model form, how to display blank for null values i.e prevent display of (None) on the form .Using postgresql, django 1.6.5. I do not wish to add space in the model instance for the allowed null values. | Instead I ended up using forms.HiddenInput() and did not display the field with null, which fits my case perfectly well! | 0 | false | 1 | 3,579 |
2015-02-14 06:00:17.293 | How does Python know which number type to use in order to Multiply arbitrary two numbers? | In C, I have to set proper type, such as int, float, long for a simple arithmetic for multiplying two numbers. Otherwise, it will give me an incorrect answer.
But in Python, basically it can automatically give me the correct answer.
I have tried debug a simple 987*456 calculation to see the source code.
I set a break p... | Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.
Based on the data type of a variable, the interpreter allocates memory and decides what can be stored in the reserved memory. Therefore, by assigning different data types to ... | 0 | false | 1 | 3,580 |
2015-02-16 02:00:19.113 | How to call command line command (AFNI command)? | I am trying to read a dicom header tag in dicom file.
Now, there are two ways to read this dicom header tag.
1) Using pydicom package in python which apparently is not working well on my python installed version(python 3).
2) or when i call AFNI function 'dicom_hinfo' through command line, i can get dicom tag value.... | Oh this was due to syntax error using Pydicom.
I wanted to access 0019, 109c tag.
Syntax should be:
ds[0x0019,0x109c].value.
not ds[aaaa,bbbb].value | 0 | false | 1 | 3,581 |
2015-02-16 14:04:15.267 | How should I unit-test python wrapper generated by SWIG | I need to create python wrapper for the library using SWIG and write unit tests for it. I don't know how to do this. My first take on this problem is to mock dynamic library with the same interface as those library that I'm writing wrapper for. This mock library can log every call or return some generated data. This lo... | I'd absolutely recommend doing some basic testing of the wrapped code. Even some basic "can I instantiate my objects" test is super helpful; you can always write more tests as you find problem areas.
Basically what you're testing is the accuracy of the SWIG interface file - which is code that you wrote in your project!... | 0 | false | 1 | 3,582 |
2015-02-16 21:58:13.197 | Django - how can I have a field in my model consisting of tuple of integers? | I am defining the models for my Django app, and I would like to have a field for a model consisting of a tuple of two (positive) integers. How can I do this? I'm looking at the Django Models API reference but I can't see any way of doing this. | Depends on how you intend to use them after storing in the database; 2 methods I can think of are:
Option 1)
models.IntegerField(unique=True)
now the trick is loading data and parsing it: you would have to concatenate the numbers then have a way to split them back out.
fast would be
Option 2)
models.CommaSeparatedInteg... | 0 | false | 1 | 3,583 |
2015-02-17 01:52:19.457 | python/pygame: how would i get my sprite to rotate in the direction it's moving? | Im fairly new to python. I creating a game similar to asteroids, and so far I've gotten the spaceship to move around with the arrow keys. can someone explain what i would do to make the spaceship rotate in the direction its moving? thanks in advance! | Each of your sprites should have velocity attributes. If your velocity is negative, turn one way. If your velocity is positive, turn the other. Because velocity indicates the direction of movement, this can be used to determine angular direction. | 0 | false | 1 | 3,584 |
2015-02-17 05:25:23.323 | Finding out if two points are on the same side | If I have a definite line segment and then am given two random different points, how would i be able to determine if they are on the same side of the line segment?
I am wanting to use a function def same_side (line, p1, p2). I know based on geometry that cross products can be used but am unsure how to do so with python... | If you can get the equation of the line in slope-intercept form, you should be able to set up an inequality.
Say we have points (x1, y1), (x2, y2), and the line y = mx+b
You should be able to plug in the x and y values for both points, and if both make the equation y < mx + b or both make it y > mx + b, they are on t... | 0.296905 | false | 1 | 3,585 |
2015-02-18 22:10:44.053 | Autograder script - reading keyboard inputs from textfile | I need to score my students c programming homeworks. I want to write an autograder script which automatically score the homeworks. I plan to write this script in python language.
My question is, in the homework, in some parts students get some input from keyboard with scanf, how can i handle this problem if I try to wr... | You can use the subprocess module in Python to spawn other programs, retrieve their output and feed them arbitrary input. The relevant pieces will most likely be the Popen.communicate() method and/or the .stdin and .stdout file objects; ensure when you do this that you passed PIPE as the argument to the stdin and stdou... | 0 | false | 1 | 3,586 |
2015-02-19 02:11:39.243 | Can one disable conversion to native types when using psycopg2? | Query results from some Postgres data types are converted to native types by psycopg2. Neither pgdb (PostgreSQL) and cx_Oracle seem to do this.
…so my attempt to switch pgdb out for psycopg2cffi is proving difficult, as there is a fair bit of code expecting strings, and I need to continue to support cx_Oracle.
The ps... | You can re-register a plain string type caster for every single PostgreSQL type (or at least for every type you expect a string for in your code): when you register a type caster for an already registered OID the new definition takes precedence. Just have a look at the source code of psycopg (both C and Python) to find... | 1.2 | true | 1 | 3,587 |
2015-02-19 12:46:16.483 | How to get a user's hostmask with Twisted IRCClient | I'm trying to get the hostmask for a user, to allow some authentication in my IRCClient bot. However, it seems to be removed from all responses? I've tried 'whois', but it only gives me the username and the channels the user is in, not the hostmask.
Any hint on how to do this? | Found it, when I override RPL_WHOISUSER, I can get the information after issuing an IRCClient.whois.
(And yes, did search for it before I posted my question, but had an epiphany right after I posted my question...) | 0.386912 | false | 1 | 3,588 |
2015-02-21 16:41:05.723 | Ubuntu and Ironpython: What paths to add to sys.path AND how to import fcntl module? | I have latest IronPython version built and running in Ubuntu 14.04 through Mono.
Building Ironpython and running with Mono seems trivial but I am not convinced I have proper sys.paths or permissions for Ironpython to import modules, especially modules like fcntl.
Running ensurepip runs subprocess, and wants to import ... | As far as I can see, the fcntl module of cPython is a builtin module (implemented in C) - those modules need to be explicitly implemented for most alternative Python interpreters like IronPython (in contrast to the modules implemented in plain Python), as they cannot natively load Python C extensions.
Additionally, it ... | 1.2 | true | 1 | 3,589 |
2015-02-23 01:05:56.630 | In Python I'm trying to import a text file into a dictionary but only assign the key, no value | Is there a way to import a text file and assign the key without a value? Im doing so to import other values from another text file to assign them as the values for the key.
For example, I would get a name from one text file and assign it as a key, then get their bank accnt number, amount of money, id number from anoth... | Every dict has a value for every key -- no such thing as "no value" for one or more keys. However you can set the value to a placeholder, e.g None, and then simply reassign it once you know exactly what the value for each given key you want to be. | 0.135221 | false | 1 | 3,590 |
2015-02-23 07:18:43.320 | Python & MapReduce: beyond basics -- how to do more tasks on one database | I have a huge txt data store on which I want to gather some stats.
Using Hadoop-streaming and Python I know how to implement a MapReduce for gathering stats on a single column, e.g. count how many records there are for each of a 100 categories. I create a simple mapper.py and reducer.py, and plug them into the hadoop-s... | This question seems very generic to me.
Chain of many map-reduce jobs are the most common pattern for the production ready solutions. But as programmer, we should always try to use less number of MR jobs to get the best performance (You have to be smart in selecting your key-value pairs for the jobs in order to do this... | 1.2 | true | 1 | 3,591 |
2015-02-23 17:06:21.337 | Nodejs Server, get JSON data from Python in html client with Ajax | I need to get data (json) in my html page, with help of Ajax. I have a Nodejs server serving requests.
I have to get the json from server, which is python code to process and produce json as output.
So should i save json in db and access it? (seems complicated just for one single use)
Should i run python server, to ... | In your application, if you have some requirement of processing results of python server requests in your nodejs application, then you need to call the python server requests in nodejs app with request libray and then process the result. Otherwise, you should simply call python server resources through client side ajax... | 0 | false | 1 | 3,592 |
2015-02-26 08:57:44.713 | how to run a python script automatically after startx on raspberrypi | I want to run a python script on raspberry pi when it is turned on. how can i do this? my script contains "Webkit" and
"Gtk" modules. I've tried many methods but still not working. the code works perfectly through the python IDEL | If you run a DE, then use the DE's session manager.
If you want to run only your application in fullscreen mode use the ~/.xinitrc to lauch it. | 0.386912 | false | 1 | 3,593 |
2015-02-27 01:50:20.710 | How do I use the multiprocess library with winsound in python? | I am writing a basic piano style program that uses functions with winsound.Beep to play different note. I am new to multi-processing, and was wondering how I would be able to play two notes at once. If that is not possible, perhaps there is a way to combine frequencies that I do not know. Thanks for reading
~Jimnebob | It seems like Beep function couldn't play several notes at the same time. You can record the sound of 'Beep' through sounddevice library, save the sound in wav files. Then, use subprocess.Popen to achieve multiprocess. The subprocess would play the wav files. | 0 | false | 1 | 3,594 |
2015-02-27 12:42:35.740 | How to fetch data from a website using Python that is being populated by Javascript? | I want to fetch few data/values from a website. I have used beautifulsoup for this and the fields are blank when I try to fetch them from my Python script, whereas when I am inspecting elements of the webpage I can clearly see the values are available in the table row data.
When i saw the HTML Source I noticed its bla... | The Python binding for Selenium and phantomjs (if you want to use a headless browser as backend) are the appropriate tools for this job. | 0.201295 | false | 2 | 3,595 |
2015-02-27 12:42:35.740 | How to fetch data from a website using Python that is being populated by Javascript? | I want to fetch few data/values from a website. I have used beautifulsoup for this and the fields are blank when I try to fetch them from my Python script, whereas when I am inspecting elements of the webpage I can clearly see the values are available in the table row data.
When i saw the HTML Source I noticed its bla... | Yes, you can scrape JS data, it just takes a bit more hacking. Anything a browser can do, python can do.
If you're using firebug, look at the network tab to see from which particular request your data is coming from. In chrome element inspection, you can find this information in a tab named network, too. Just hit ctrl-... | 0 | false | 2 | 3,595 |
2015-02-28 21:09:22.660 | How to make a webpage display dynamic data in real time using Python? | I am working on making a GUI front end for a Python program using HTML and CSS (sort of similar to how a router is configured using a web browser). The program assigns values given by the user to variables and performs calculations with those variables, outputting the results. I have a few snags to work out:
How do I ... | To achieve your goal, you need good knowledge of javascript, the language for dynamic web pages. You should be familiar with dynamic web techniques, AJAX, DOM, JSON. So the main part is on the browser side. Practically any python web server fits. To "bridge the gap" the keyword is templates. There are quite a few for p... | 0 | false | 1 | 3,596 |
2015-03-01 04:17:13.320 | Obtain optimal number of boosting iterations in GradientBoostingClassifier using grid search | With GradientBoostingClassifier suppose I set n_estimators to 2000 and use GridSearchCV to search across learning_rate in [0.01, 0.05, 0.10] - how do I know the number of boosting iterations that produced the optimal result - is the model always going to fit 2000 trees for each value of learning_rate or is it going to ... | Currently there is no way to directly get the optimum number of estimators from GradientBoostingClassifier. If you also pass n_estimators in the parameter grid to GridSearchCV it will only try the exact values you give it, and return one of these.
We are looking to improve this, by searching over the number of estimato... | 1.2 | true | 1 | 3,597 |
2015-03-01 07:41:27.387 | Key and lock code [game programming]? | Metaphorically speaking, I'm learning python in a community college for game programming; and our second assignment is to make a text based game. I'm stuck trying to figure out how to get the code to run if the player has something in their inventory, then display these options or print these options if they don't have... | What you describe is what was a very popular type of game a long time ago. The most difficult portion of this type of game is interpreting user input. You can start with a list of possible commands, iterating through each token of the user's input. If I type
look left
the game can begin by calling a method or functio... | 0 | false | 1 | 3,598 |
2015-03-01 22:02:17.760 | Best way to stop a Python script even if there are Threads running in the script | I have a python program run_tests.py that executes test scripts (also written in python) one by one. Each test script may use threading.
The problem is that when a test script unexpectedly crashes, it may not have a chance to tidy up all open threads (if any), hence the test script cannot actually complete due to the t... | To me, this looks like a pristine application for the subprocess module.
I.e. do not run the test-scripts from within the same python interpreter, rather spawn a new process for each test-script. Do you have any particular reason why you would not want to spawn a new process and run them in the same interpreter instead... | 1.2 | true | 1 | 3,599 |
2015-03-04 08:57:28.173 | opencv FaceRecognition during login | maybe some of you can point me in the right direction.
I've been playing around with OpenCV FaceRecognition for some time with Eigenfaces to let it learn to recognize faces. Now I would like to let it run during windows logon.
Precisely, I want to make Snapshots of Faces when I log into a user so after the software ha... | You can store the snapshots in an array, run your recognition on each image and see if the user is recognized as one of the users you have trained your model on.
If not then prompt the user for their name, if the name matches one of the users you trained your model on, add these snapshots to their training set and re-t... | 0 | false | 1 | 3,600 |
2015-03-04 12:42:46.707 | converting dataframe from Hex to binary in using python | I am pretty new to Python and pandas library, i just learned how to read a csv file using pandas.
my data is actually raw packets i captured from sensor networks, to analyze corrupt packets.
what i have now is, thousands of rows and hundreds of columns, literally, and the values are all in Hex. i need to convert all t... | If I understood, in column 1 you have 00, column 2 : 55, ...
If I am right, you first need to concat three columns in a string value = str(col1)+str(col2)+str(col3) and then use the method to convert it in binary. | 0 | false | 1 | 3,601 |
2015-03-05 09:32:35.267 | Bloomberg API Python 3.5.5 with C++ 3.8.1.1. on Mac OS X import blpapi referencing | I am trying to install and run successfully Bloomberg API Python 3.5.5 and I have also downloaded and unpacked C++ library 3.8.1.1., both for the Mac OS X. I'm running Mac OS X 10.10.2. I am using the Python native to Mac OS X, Python 2.7.6 and I had already installed, via Xcode, the Command line gcc compiler, GCC 4.... | There is a missing step in the Python SDK README file; it instructs you to set BLPAPI_ROOT in order to build the API wrapper, but this doesn't provide the information needed at runtime to be able to load it.
If you unpacked the C/C++ SDK into '/home/foo/blpapi-sdk' (for example), you will need to set DYLD_LIBRARY_PATH ... | 0.999998 | false | 1 | 3,602 |
2015-03-05 12:05:17.497 | Django keeps calling another package to paginate -- how? | My code imports Paginator from django.core.paginator. (Django 1.6.7)
However, when run, somehow it is calling a custom paginator. I don't want it to do this, as the custom paginator template has been removed in an upgrade. I just want Django's Paginator to be used, but I can't find how to workout where it's overriding... | You've all been really helpful. However the my confusion came from the fact that paginator was being added to the context, yet there was a statement {% load paginator %} at the top of the template. I thought they were the same, but no. The paginator from the context was unused, and the load statement pulled in the bad... | 1.2 | true | 1 | 3,603 |
2015-03-05 12:14:27.350 | Is it possible to use Celery to run an already compiled (py2exe) python script | Is it possible to use Celery to run an already compiled (py2exe) python script, if yes, how I can invoke it ? | if __name__ == '__main__':
app.start()
should be added to the entry point of the script. | 0 | false | 1 | 3,604 |
2015-03-06 04:47:17.143 | how to specify external software requirements with conda/meta.yaml in Python? | I am writing a meta.yaml file for a python package to be used in conda packages in a way that works with CI systems. how can i specify external software requirements for the package? meaning software that is not a python library but is required for the package unit tests to pass? to clarify: the required module is not ... | The requirements in the meta.yaml can be any conda package (which doesn't have to just be Python packages). If you have a conda package for your dependency, you can specify it. | 1.2 | true | 1 | 3,605 |
2015-03-06 16:28:56.733 | Django REST Backend for mobile app with Facebook login | I have to implement a REST backend for mobile applications.
I will have to use Django REST Framework.
Among the features that I need to implement there will be the registration user and login.
Through the mobile application the user can create an account using ONLY the Facebook login.
Then, the application will take t... | i didn't unerstand the first case, when you are using facebook login it does the authentication and we will register the user with the access token provided by facebook. When ever user log in we are not worried about the password, authentication is not done on our end. so when ever user tries to login it contacts faceb... | 0 | false | 1 | 3,606 |
2015-03-07 00:27:45.140 | DataNitro - copying from the shell into an editor | I'm using DataNitro and would like to be able to copy output from the Excel Shell and paste into my editor. However, I can't find a way to do that. Any idea how I might do that? | Right click in the shell, click "mark", highlight the region you want to copy, and press enter. It'll then be in your clipboard and you can paste it into an editor.
(This is the way to copy things from a windows command prompt in general, which is where the shell is running.) | 0 | false | 1 | 3,607 |
2015-03-07 14:04:26.197 | how to get the default size of a window in pyqt4 | When I create a QMainWindow without explicitly specifying its dimensions, PyQt will give it a -let's say- "standard size" which is not the minimum that the window can get.
Can I set this size at will in any way?
My goal is to get this "standard size" according to the currently visible widgets, when I set the visibility... | QWidget.sizeHint holds the recommended size for the widget. It's default implementation returns the layout's preferred size if the widget has a layout. So if your dialog has a layout, just use sizeHint to get the recommended size which is the default one. | 1.2 | true | 1 | 3,608 |
2015-03-08 01:11:57.880 | Ren'Py with Renpygame for Android | I have this game which I have coded in python with pygame.
When I launch my game through the renpy launcher, it works just fine.
When I emulate my game through the renpy android emulator, it works just fine.
When I go through each of the build steps (install sdk, configure, build package, install package) it completes... | I e-mailed PyTom, the creator of Ren'py, and he responded back instantly:
"Edit the rapt/blacklist.txt file, and delete the line that says **.py. "
It worked! Thanks, PyTom. | 0.386912 | false | 1 | 3,609 |
2015-03-09 08:59:01.997 | How to detect silence in an audio stream with pydub? | I want to monitor an audio streaming for silences. Any idea how I can do this ? it's a stream, not an audio file. | Your best bet is to grab chunks from the stream (I'd advise 50 millisecond chunks since one complete wave form at 20Hz is 50ms), and construct an AudioSegment using this data.
Once you've done that you'll be able to use the AudioSegment().dBFS property to get a rough measure of the average loudness of that chunk. Once ... | 1.2 | true | 1 | 3,610 |
2015-03-09 11:18:36.810 | Not losing the quality of pictures saved with cv2.imwrite() | I am wondering seriously about the effects of cv2.imwrite() function of OpenCV.
I noticed that when I read pictures with cv2.imread() and save them again with cv2.imwrite() function, their quality is not the same any more for the human eyes.
I ask you how can I keep the quality of the image the same as the original aft... | JPEG is a lossy format, you need to save your images as PNG as it is a lossless format. | 1.2 | true | 1 | 3,611 |
2015-03-09 18:31:02.383 | Turning off IntelliJ Auto-save | I have done a fair amount of googling about this question and most of the threads I've found are 2+ years old, so I am wondering if anything has changed, or if there is a new method to solve the issue pertaining to this topic.
As you might know when using IntelliJ (I use 14.0.2), it often autosaves files. For me, when ... | I think the correct answer was given as a comment from ryanlutgen above:
The beaviour of "auto-saving" your file is not due to the auto-save options mentioned.
IJ saves all changes to your build sources to automatically build the target.
This can be turned of in:
Preferences -> Build,Execution,Deployment -> Compiler ... | 0.386912 | false | 2 | 3,612 |
2015-03-09 18:31:02.383 | Turning off IntelliJ Auto-save | I have done a fair amount of googling about this question and most of the threads I've found are 2+ years old, so I am wondering if anything has changed, or if there is a new method to solve the issue pertaining to this topic.
As you might know when using IntelliJ (I use 14.0.2), it often autosaves files. For me, when ... | If there are any file watchers active (Preferences>Tools>File Watchers), make sure to check their Advanced Options. Disable any Auto-save files to trigger the watcher toggles.
This option supersedes the Autosave options from Preferences>Appearance & Behaviour>System Settings. | 0.050976 | false | 2 | 3,612 |
2015-03-10 09:37:48.193 | padding oracle attack - how to represent hexadecimal as one byte in python | I am trying to carry out a padding oracle attack. I am aware that I have to modify the bytes from 00 to the point where it succeeds, to find the correct padding. But, how do I represent 00-FF in python? When I try representing it as a part of the string, 00 is taken as 2 bytes.
P.S - This is a homework problem. | Doing '\x00\x00\xff' or "0000ff".decode('hex') should work. | 0.673066 | false | 1 | 3,613 |
2015-03-10 15:31:56.853 | Create a dynamic admin site | I want to create a dynamic admin site, that based on if the field is blank or not will show that field. So I have a model that has a set number of fields, but for each individual entry will not contain all of the fields in my model and I want to exclude based on if that field is blank.
I have a unique bridge identifi... | I was using Django 1.6 which did not support overriding the get_fields method. Updated to 1.7 and this method worked perfectly. | 1.2 | true | 1 | 3,614 |
2015-03-10 18:17:38.897 | Open SSH connection on exit Python | I am writing a little script which picks the best machine out of a few dozen to connect to. It gets a users name and password, and then picks the best machine and gets a hostname. Right now all the script does is print the hostname. What I want is for the script to find a good machine, and open an ssh connection to it ... | If you want the python script to exit, I think your best bet would be to continue doing a similar thing to what you're doing; print the credentials in the form of arguments to the ssh command and run python myscript.py | xargs ssh. As tdelaney pointed out, though, subprocess.call(['ssh', args]) will let you run the ss... | 1.2 | true | 1 | 3,615 |
2015-03-12 18:05:49.297 | OpenERP, Aptana - debugging Python code, breakpoint not working | I have created Odoo v8 PyDev project in Aptana. When I run the openerp server from Aptana, and set a breakpoint in my file product_nk.py, the program does not stop at this break point although I navigated to the Odoo web pages where the functionality is linked to the code with breakpoint.
What am I possibly missing in... | It could happen if you run your server in "run" mode and not "debug" mode.
If you are in "run" mode the breakpoints would be skipped.
In Aptana, go to the "run" -> "debug" to run it in debug mode. | 1.2 | true | 1 | 3,616 |
2015-03-12 19:40:59.087 | How to convert a sparse dict to scipy.sparse matrix in python? | I have a very large dictionary of the following format {str: [0, 0, 1, 2.5, 0, 0, 0, ...], str: [0, 0, 0, 1.1, 0, 0, ...], ...}. The number of elements for each str key can be very big so I need an effective way to store and make calculations over this data.
For example right now my dict of str keys has 100 keys. Each... | With standard dict methods you can get a list of the keys, and another list of the values. Pass the 2nd to numpy.array and you should get a 100 x 7000 array. The keys list could also be made into array, but it might not be any more useful than the list. The values array could be turned into a sparse matrix. But its... | 1.2 | true | 1 | 3,617 |
2015-03-12 20:15:29.760 | Accidentally deleted a folder's contents in iPython/Jupyter and I can recover it from trash on Mac OSX Yosemite. Is there anyway I can get it back? | Just installed iPython/Jupyter and accidentally deleted pictures from a file that was living on my desktop. I don't know how to undo what I just deleted and can't seem to find any of the pictures in my trash. Is there anyway I can recover them? My instance of iPython/Jupyter is still open.
Thanks. | Check in the hidden directory ".ipynb_checkpoints" inside of the directory that used to hold the notebook.
If you had recently been running the notebook prior to deleting it, you may be able to find a recent copy of it saved at the last "checkpoint". | 0 | false | 2 | 3,618 |
2015-03-12 20:15:29.760 | Accidentally deleted a folder's contents in iPython/Jupyter and I can recover it from trash on Mac OSX Yosemite. Is there anyway I can get it back? | Just installed iPython/Jupyter and accidentally deleted pictures from a file that was living on my desktop. I don't know how to undo what I just deleted and can't seem to find any of the pictures in my trash. Is there anyway I can recover them? My instance of iPython/Jupyter is still open.
Thanks. | No, you can't easily recover the files. The files are gone. Your option is to restore from a backup, or use a data recovery tool of some sort. | 0.201295 | false | 2 | 3,618 |
2015-03-13 20:40:03.103 | Associate file extension to python script, so that I can open the file by double click, in windows | I want to do the following:
Save numeric data in a CSV-like formatting, with a ".foo" extension;
Associate the ".foo" file extension with some python script, which in turns opens the .foo file, reads its content, and plots something with a plotting library (matplotlib most probably).
The use-case would be: double-cli... | press the windows key
type cmd
right click the result and choose "run as administrator"
assoc .foo=foofile
ftype foofile="C:\Users\<user>\AppData\Local\Programs\Python\PYTHON~1\python.exe" "C:\<whatever>\fooOpener.py" "%1" %*
Use pythonw.exe if it's a .pyw file (to prevent a cmd window from spawning).
If you want to u... | 0.986614 | false | 1 | 3,619 |
2015-03-14 14:23:17.630 | Pandas Time-Series: Find previous value for each ID based on year and semester | I realize this is a fairly basic question, but I couldn't find what I'm looking for through searching (partly because I'm not sure how to summarize what I want). In any case:
I have a dataframe that has the following columns:
* ID (each one represents a specific college course)
* Year
* Term (0 = fall semester, 1 = spr... | Use this function to create the new column...
DataFrame.shift(periods=1, freq=None, axis=0, **kwds)
Shift index by desired number of periods with an optional time freq | 0.135221 | false | 1 | 3,620 |
2015-03-15 01:35:06.350 | change the type of numpyndarray float element to string | I have an arff file as input. I read the arff file and put the element values in a numpy ndarray.Now my arff file contains some '?' as some of the elements. Basically these are property values of matrices calculated by anamod. Whichever values anamod cannot calculate it plugs in a '?' character for those. I want to do ... | You can't change the type of parts of an ordinary ndarray. An ndarray requires all elements in the array to have the same numpy type (the dtype), so that mathematical operations can be done efficiently. The only way to do this is to change the dtype to object, which allows you to store arbitrary types in each element... | 1.2 | true | 1 | 3,621 |
2015-03-15 13:11:32.387 | a value too large for dtype('float64') | I'm using numpy for reading an arff file and I'm getting the following error:
ValueError: Input contains NaN, infinity or a value too large for dtype('float64').
I used np.isnan(X2.any()) and np.isfinite(X2.all())to check if it's a nan or infinite case. But it's none of these. This means it's the third case, which is... | Ok I got it. After i used Imputer(missing_values='NaN', strategy='median', axis=1) imp.fit(X2). I also had to write :
X2 = imp.fit_transform(X2). The reason being sklearn.preprocessing.Imputer.fit_transform returns a new array, it doesn't alter the argument array | 1 | false | 1 | 3,622 |
2015-03-16 01:12:58.703 | Is there a way to profile an OpenCL or a pyOpenCL program? | I am trying to optimize a pyOpenCL program. For this reason I was wondering if there is a way to profile the program and see where most of the time is needed for.
Do you have any idea how to approach this problem?
Thanks in advance
Andi
EDIT: For example nvidias nvprof for CUDA would do the trick for pyCuda, however, n... | CodeXL from AMD works very well. | 0 | false | 1 | 3,623 |
2015-03-16 09:57:10.477 | How to Check is email exists or not in python | I want to check that the given email id is really exists or not in smtp server. Is it possible to check or not.? If it possible please give me suggestion how can we do it. | Short of sending an email and having someone respond to it is impossible to verify an email exists.
You can verify the SMTP server has a whois address, but thats it. | 0 | false | 1 | 3,624 |
2015-03-16 14:45:02.210 | Spin up VM using Ansible without Vagrant | I have a specific requirement where I can use only Ansible in my host machine without vagrant.
Two questions associated with it:
Is it possible to spin up a VM over the host machine with libvirt/KVM as hypervisor using ansible ? I know there is a module called virt in ansible which is capable of doing this. But I c... | Of course - if you have SSH access to it.
Yes, you can run Ansible using its Python API or through command-line call. About passing YAML file - also - yes. | 0.673066 | false | 1 | 3,625 |
2015-03-16 19:24:55.690 | Shared file access between Python and Matlab | I have a Matlab application that writes in to a .csv file and a Python script that reads from it. These operations happen concurrently and at their own respective periods (not necessarily the same). All of this runs on Windows 7.
I wish to know :
Would the OS inherently provide some sort of locking mechanism so that o... | I am not sure about window's API for locking files
Heres a possible solution:
While matlab has the file open, you create an empty file called "data.lock" or something to that effect.
When python tries to read the file, it will check for the lock file, and if it is there, then it will sleep for a given interval.
When m... | 1.2 | true | 1 | 3,626 |
2015-03-16 22:50:00.500 | How I can get user input from browser using python | I am in the middle of my personal website development and I am using python to create a "Comment section" which my visitors could leave comments at there in public (which means, everybody can see it, so don't worry about the user name registration things). I already set up the sql database to store those data but only ... | For that you would need a web framework like Bottle or Flask. Bottle is a simple WSGI based web framework for Python.
Using either of these you may write simple REST based APIs, one for set and other for get. The "set" one could accept data from your client side and store it on your database where as your "get" api sh... | 0 | false | 1 | 3,627 |
2015-03-17 14:56:32.513 | Connect MySQL Workbench with Django in Eclipse in a mac | I am new to this so a silly question
I am trying to make a demo website using Django for that I need a database.. Have downloaded and installed MySQL Workbench for the same. But I don't know how to setup this.
Thank you in advance :)
I tried googling stuff but didn't find any exact solution for the same.
Please help | I am a mac user. I have luckily overcome the issue with connecting Django to mysql workbench. I assume that you have already installed Django package created your project directory e.g. mysite.
Initially after installation of MySQL workbench i have created a database : create database djo;
Go to mysite/settings.py and... | 1.2 | true | 1 | 3,628 |
2015-03-18 05:02:59.907 | Commands not working in ScrapyProject | I create a virtualenv name as ScrapyProject. when I use scrapy command or pip command it does not work but when I enter the python command it works. Here is how he shows me.
(ScrapyProject) C:\Users\Jake\ScrapyProject>scrapy
(ScrapyProject) C:\Users\Jake\ScrapyProject>pip
(ScrapyProject) C:\Users\Jake\ScrapyProject>py... | You need to pip install all the set-up within the virtualenv. | 0 | false | 1 | 3,629 |
2015-03-18 14:16:05.153 | Do I need to use Tornado Futures with Motorengine? | Basically, what is a Futures on Tornado's approach?
I've read on some stackoverflow threads that a tornado coroutine must return a Future, but returning a Future how do my db queries work?
Using Futures will my Tornado app be waiting for the query to return anything like a blocking i/o or it will just dispatch the requ... | You need to understand how Tornado works asynchronously. Everytime you yield a Future object, Tornado suspends current coroutine and jumps to the next coroutine. Doing queries synchronous or asynchronous depends on the situation. If your query is fast enough, you can use synchronous driver. Also, keep in mind, jumping ... | 0 | false | 1 | 3,630 |
2015-03-19 04:05:52.837 | Perform searching on very large file programatically in Python | I have a text file of size 2.5 GB which contains hash values of some standard known files. My task is to find the hash of all files on my file system and compare it with the hashes stored in the text file. If a match is found I need to print Known on the screen and if no match is found then I need to print unknown on ... | Search on StackOverflow for code to recursively list full file names in Python
Search on StackOverflow for code to return the hash checksum of a file
Then list files using an iterator function. Inside the loop:
Get the hash checksum of the current file in the loop
Iterate through every hash. Inside the loop:
Compare... | 1.2 | true | 1 | 3,631 |
2015-03-19 15:32:01.593 | Generating high dimensional datasets with Scikit-Learn | I am working with the Mean Shift clustering algorithm, which is based on the kernel density estimate of a dataset. I would like to generate a large, high dimensional dataset and I thought the Scikit-Learn function make_blobs would be suitable. But when I try to generate a 1 million point, 8 dimensional dataset, I end u... | The standard deviation of the clusters isn't 1.
You have 8 dimensions, each of which has a stddev of 1, so you have a total standard deviation of sqrt(8) or something like that.
Kernel density estimation does not work well in high-dimensional data because of bandwidth problems. | 1.2 | true | 1 | 3,632 |
2015-03-20 15:33:01.953 | Inserting data into SQL database that needs to be linked | I'm not sure what exactly the wording for the problem is so if I haven't been able to find any resource telling me how to do this, that's most likely why.
The basic problem is that I have a webcrawler, coded in Python, that has a 'Recipe' object that stores certain data about a specific recipe such as 'Name', 'Instruct... | For the first question (how do I make sure I'm not duplicating ingredients?), if I understand well, is basically put your primary key as (i_id, name) in the table ingredients. This way you guarantee that is impossible insert an ingredient with the same key (i_id, name).
Now for the second question (how do I insert the ... | 0 | false | 1 | 3,633 |
2015-03-21 03:37:54.817 | Ignore part of file in git when using on 2 different computers (python) | I am using a python program on 2 different computers.
On computer 1 some path (e.g., to an image or something), used by the program, is, say, a/b/
On computer 2, the equivalent path is different, say, b/a/ (the image, e.g., is in a different folder)
When I want to run the script on computer 1 I pull the code and set ... | Absolute paths that depend on your specific computer do not belong in version control. A good solution would be to have your program read an environment variable and use it as the path. Make sure to set a sensible default if the environment variable is unset. | 1.2 | true | 1 | 3,634 |
2015-03-21 18:30:34.727 | python - stop audio between words | I want to make a simple script that uses audio files to talk a user through a process. When the user has finished the current step, it should stop trying to explain that step and move into the next. This is easy to do, except that it sounds very ugly and unnatural when the audio stops mid-word.
I've noticed in Grand Th... | I dont't know how you recorded your text but if you call every word in an other line you can type import time at line 1 and and then after every audio file you could set time.sleep(0.3) (0.3 stands for 0.3 seconds). but that may take a while. it would be useful to see your code. so can you send it maybe? | 0 | false | 1 | 3,635 |
2015-03-22 02:39:22.967 | ImportError: No module named pygame and how to change the path of pygame? | Okay, so I am brand new at this and I really need for this to be dumbed down for me. My python version is 2.7.9 and I downloaded pygame-1.9.1.win32-py2.7.msi and I am on a windows computer. I really need someone to explain why this is not working. I was reading on some of the other questions that you have to change the... | There is only really only one way to do this:
Create a folder
Put the Python Interpreter you are using in that folder
Put the PyGame module you are using in that same folder
And your problem is now solved. I hope this helps you! | 0 | false | 1 | 3,636 |
2015-03-22 18:11:21.897 | IronPython-List Open Metro Apps only | Background
I am working on a program that needs to find a list of open Metro apps. I originally tried using pure python with ctypes and using win32 api. Unfortunately, I couldn't get the names of Metro apps. So I moved on to IronPython thinking I could leverage a .net function or two to get what I want. No luck.
Where ... | I don't think MS allows this functionality. As an alternative, you can have the user put their mouse over the window and press a keyboard shortcut (What I am doing).
That is the best one can do. | 1.2 | true | 1 | 3,637 |
2015-03-23 11:20:05.067 | How to make most common OpenID logins look the same? | I want my users to be able to login using all common OpenIds. But there seems to be a forest of clauses on how to use logos from google, facebook, yahoo and twitter.
Actually I'd prefer a wider button with the text on it, but it seems that all these buttons don't have the aspect ratio. And some of them I am not allowed... | You could simply use the yahoo site's favicon. It's already squared and gets as close to official as it can get. | 0 | false | 1 | 3,638 |
2015-03-23 22:44:32.173 | How to install dependencies in OpenShift? | Hello i want to install these dependencies in OpenShift for my App
yum -y install wget gcc zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libffi-devel libxslt libxslt-devel libxml2 libxml2-devel openldap-devel libjpeg-turbo-devel openjpeg-devel libtiff-devel libyaml-d... | You can not use the "yum" command to install packages on OpenShift. What specific issue are you having? I am sure that at least some of those packages are already installed in OpenShift online already (such as wget). Have you tried running your project to see what specific errors you get about what is missing? | 0 | false | 1 | 3,639 |
2015-03-24 11:58:21.850 | How do I upgrade python 2.7.8 to 2.7.9 in Anaconda without conflicting other components in its environment? | After successful installation of Anaconda on Windows 7 I realized the default Python version is 2.7.8. However I need 2.7.9. So how do I upgrade? | Install newest version of Anaconda from their website. This will upgrade your Anaconda and python as well. Also, uninstall the previous version of Anaconda. | 0 | false | 1 | 3,640 |
2015-03-25 02:58:47.337 | How to add to python dictionary without replacing | the current code I have is category1[name]=(number) however if the same name comes up the value in the dictionary is replaced by the new number how would I make it so instead of the value being replaced the original value is kept and the new value is also added, giving the key two values now, thanks. | a key only has one value, you would need to make the value a tuple or list etc
If you know you are going to have multiple values for a key then i suggest you make the values capable of handling this when they are created | 0 | false | 1 | 3,641 |
2015-03-25 09:47:44.693 | High availability for Python's asyncio | I am trying to create an asynchronous application using Python's asyncio module. However, all implementations I can find on the documentation is based on a single Event Loop.
Is there any way to launch multiple Event Loops running the same application, so I can achieve high availability and fault tolerance? In other wo... | The standard way to deal with this is by starting multiple server processes (each with its own event loop), with a load balancer in front. Each such process typically cannot utilize more than one CPU core, so you might want to have as many processes as you have cores. | 1.2 | true | 1 | 3,642 |
2015-03-25 17:46:06.223 | The number of calendar weeks in a year? | In Python, how can we find out the number of calendar weeks in a year?
I didn't find a function in the standard library.
I then thought about date(year, 12, 31).isocalendar()[1], but
For example, 2004 begins on a Thursday, so the first week of ISO year 2004 begins on Monday, 29 Dec 2003 and ends on Sunday, 4 Jan 200... | You're almost there, take the date of Dec. 28. If there is a monday after that, it will only have 3 days in the old year and hence be week 1 of the new year. | 0.386912 | false | 1 | 3,643 |
2015-03-26 16:48:45.493 | How to install in python 3.4 - .whl files | I recently tried to re-install numpy for python 3.4, since I got a new computer, and am struggling. I am on windows 8.1, and from what I remember I previously used a .exe file that did everything for me. However, this time I was given a .whl file (apparently this is a "Wheel" file), which I cannot figure out how to ins... | See the easiest solution is to unzip the .whl file using 7-zip. Then in the unzipped directory you will find the module which you can copy and paste in the directory C:/Python34/Lib/site-packages/ (or wherever else you have installed Python). | 0.999329 | false | 2 | 3,644 |
2015-03-26 16:48:45.493 | How to install in python 3.4 - .whl files | I recently tried to re-install numpy for python 3.4, since I got a new computer, and am struggling. I am on windows 8.1, and from what I remember I previously used a .exe file that did everything for me. However, this time I was given a .whl file (apparently this is a "Wheel" file), which I cannot figure out how to ins... | Python 3.4 comes with PIP already included in the package, so you should be able to start using PIP immediately after installing Python 3.4. Commands like pip install <packagename> only work if the path to PIP is included in your path environment variable. If it's not, and you'd rather not edit your environment variabl... | 1.2 | true | 2 | 3,644 |
2015-03-26 22:57:04.797 | A focus point on the raspberry pi camera | I just got my raspberry pi yesterday and have gone through all the setup and update steps required to enable the camera extension (which took me like 6 hrs; yes, I am a newbie).
I need to create a focus point on the camera's output and use the arrow keys to move this point around the screen.
My question is how to acc... | If you need to take close-ups or if you are capturing image very close to camera lens then you need to manually set the focus. | 0 | false | 2 | 3,645 |
2015-03-26 22:57:04.797 | A focus point on the raspberry pi camera | I just got my raspberry pi yesterday and have gone through all the setup and update steps required to enable the camera extension (which took me like 6 hrs; yes, I am a newbie).
I need to create a focus point on the camera's output and use the arrow keys to move this point around the screen.
My question is how to acc... | You do realise that the Pi Camera board has a fixed focus at 1m to infinity ?
& If you want focus <1m you're gonna have to manually twist the lens, after removing the glue that fixates it in the housing. | 0 | false | 2 | 3,645 |
2015-03-27 10:14:59.570 | how to use a library that's compiled for python 2.7 in python 2.4 | I want to use a library which is available from python 2.7 onwards on a system with python 2.4. I cannot upgrade the system to python 2.7, as many other libraries and softwares are written in python 2.4.
For instance, i want to use the xml.eTree library in python 2.4.
Can i take the source code of that library and do f... | You don't need to upgrade the system Python. Install your own local version of 2.7 into your home directory, create a virtualenv using that version, and install your libraries there. | 0 | false | 1 | 3,646 |
2015-03-27 18:34:03.910 | how to update a Python package (Pandas) manually? | Hi I have both Pycharm and Anaconda installed on my computer and I would like to upgrade the package Pandas to the latest version (i have the 0.14 version)
Unfortunately my computer has strong firewall restrictions and I am not able to use the internet to update it. I can download the source files though.
Is there a wa... | If you are using conda, use the --offline flag when installing the conda package that you downloaded, like conda install --offline pandas-0.15.2-np19py27.tar.bz2. | 1.2 | true | 1 | 3,647 |
2015-03-28 12:24:45.223 | What is the structure of a vim .swp file? | An application wants to shell text out to vim and know what edits are being made, in real time.
The .swp file provides this information. Can anyone provide guidance on how to read this binary file, say, with Python? | Thanks everyone who replied.
I hoped .swp would be documented, maybe even code available to access it, seems not.
The suggestion to write a plugin in Python probably makes the most sense, I bet it's possible to hook to something like 'on_keystroke' and maintain a mirror I can understand.
'shell out' as in 'write this c... | 0 | false | 2 | 3,648 |
2015-03-28 12:24:45.223 | What is the structure of a vim .swp file? | An application wants to shell text out to vim and know what edits are being made, in real time.
The .swp file provides this information. Can anyone provide guidance on how to read this binary file, say, with Python? | I wouldn't rely on the swapfile contents to get real-time updates. Its format is geared towards Vim's uses, and its format isn't documented other than by its implementation. You would have to duplicate large parts of the algorithm, and maintain that whenever the internal format changes (without prior notice).
Alternati... | 0.135221 | false | 2 | 3,648 |
2015-03-28 16:27:34.090 | How do I suppress the console window when debugging python code in Python Tools for Visual Studio (PTVS)? | In PTVS the default behavior is for the program to print to the Python console window and the Visual Studio Debug Output window.
Realizing that it won't be able to accept user input, how do I suppress the Python console window? | Use the Python Interactive Window (CTRL-ALT-F8 or Debug Menu). You will have the code output on the python interactive shell (where you can obviously interact). The win terminal will not appear anymore. | 0 | false | 1 | 3,649 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | It looks that some files are still left and some registry keys are left. So you can run revocleaner tool to remove those entries as well. Do a reboot and install again it should be doing it now.
I also faced issue and by complete cleaning I got Rid of it. | 0.087241 | false | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | Since I didn't have the uninstaller listed - the solution turned out to be to reinstall Anaconda and then uninstall it. | 1.2 | true | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | If a clean re-install/uninstall did not work, this is because the Anaconda install is still listed in the registry.
Start -> Run -> Regedit
Navigate to HKEY_CURRENT_USER -> Software -> Python
You may see 2 subfolders, Anaconda and PythonCore. Expand both and check the "Install Location" in the Install folder, it will ... | 0.481382 | false | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | In the folder where you installed Anaconda (Example: C:\Users\username\Anaconda3) there should be an executable called Uninstall-Anaconda.exe. Double click on this file to start uninstall Anaconda.
That should do the trick as well. | 1 | false | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | To use Uninstall-Anaconda.exe in C:\Users\username\Anaconda3 is a good way. | 0.201295 | false | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | In my computer there wasn't a uninstaller in the Start Menu as well. But it worked it the Control Panel > Programs > Uninstall a Program, and selecting Python(Anaconda64bits) in the menu.
(Note that I'm using Win10) | 0.503464 | false | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | there is a start item folder in C:\ drive. Remove ur anaconda3 folder there, simple and you are good to go. In my case I found here "C:\Users\pravu\AppData\Roaming\Microsoft\Windows\Start Menu\Programs" | 0.087241 | false | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | Go to C:\Users\username\Anaconda3 and search for Uninstall-Anaconda3.exe which will remove all the components of Anaconda. | 0.029146 | false | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | For windows-
In the Control Panel, choose Add or Remove Programs or Uninstall a program, and then select Python 3.6 (Anaconda) or your version of Python.
Use Windows Explorer to delete the envs and pkgs folders prior to Running the uninstall in the root of your installation. | 0.087241 | false | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | Anaconda comes with an uninstaller, which should have been installed in the Start menu. | 0.229097 | false | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | Method1:
To uninstall Anaconda3 go to the Anaconda3 folder, there u will be able to find an executable called Uninstall-Anaconda3.exe, double click on it. This should uninstall ur application.
There are times when the shortcut of anaconda command prompt,jupyter notebook, spyder, etc exists, so delete those files too.
... | 0.116092 | false | 13 | 3,650 |
2015-03-30 03:25:11.703 | How to remove anaconda from windows completely? | I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
I removed Anaconda and deleted all the directories and installed python 2.7.
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory - this doesn't even exist. I ... | On my machine (Win10), the uninstaller was located at C:\ProgramData\Anaconda3\Uninstall-Anaconda3.exe. | 0.087241 | false | 13 | 3,650 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.