Over 1 million tech questions and answers.

Help with Python and IPython

Q: Help with Python and IPython

Hello,

I was trying to update my Python version yesterday, from 2.3 to 2.7. However, when I had finished installing 2.7, I was unable to open IPython. When I right-click a folder and click "IPython here" a window opened and I was redirected to a command prompt window. I uninstalled all Python after that and tried reinstalling, but had no success in getting IPython working.

If you have any insight into what's going on and how I can remedy the issue, please let me know.

Read other answers
RELEVANCY SCORE 200
Preferred Solution: Help with Python and IPython

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

RELEVANCY SCORE 52.4

Porting Perl To Python.

Summary: Porting legacy Perl to Python can be a daunting task. In this article, learn some of the theory behind dealing with legacy code, including what not to do.Click to expand...

-- Tom
 

Read other answers
RELEVANCY SCORE 39.6
Q: python

Hi
can any one please tell me how to compile a python source code into a standart .exe file
 

A:python

http://www.py2exe.org/
 

Read other 2 answers
RELEVANCY SCORE 39.6
Q: python

Does anyone know what python 2.2 combined win32 extensions is?
Do I need it on my pc?
I just noticed it about a week ago.
Thanks

A:python

Hello dee1-2-3 and welcome to BC.What is Python?Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme or Java.Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, as well as to various windowing systems (X11, Motif, Tk, Mac, MFC). New built-in modules are easily written in C or C++. Python is also usable as an extension language for applications that need a programmable interface.Unless you are doing some programming..............

Read other 1 answers
RELEVANCY SCORE 39.6

i am trying to learn python not sure if its loaded properly on my pc any one as any detail instruction for win7 installation
 

A:python and win 7

If you're using ActivePython, the installer should have everything configured for you. You will, of course, want to read the accompanying documentation for how to run your python scripts.
 

Read other 1 answers
RELEVANCY SCORE 39.6

Is this a necessary software for windows XP?...Trying to clean up my HD..Don't even know how it got on my system..
 

A:Python 2.2.3?

Python is a programming language and not absolutely necessary unless you have programs installed that need Python in order to run.
 

Read other 1 answers
RELEVANCY SCORE 39.6

How does PHP compare with Python and witch one is better to learn for future use?
 

A:PHP vs Python

Read other 6 answers
RELEVANCY SCORE 39.6

Am writing a program which simulates the action of an atm machine and I need it to end when option "c" is chosen. How exactly cn I do this, the only ways i can think of are...rubbish...
 

A:Python atm

Hi eventide,

Perhaps this link will help which is the result of searching for case statement here.

I assume you can structure your input options in a case statement - one of which would be 'c' to switch to in the proper Python syntax, of course.

-- Tom
 

Read other 1 answers
RELEVANCY SCORE 39.6

I am having trouble running pip. It is supposed to come installed with python, but my computer doesn't recognize it. I try installing it, but get an error message. Could it have something to do with running 32 bit python on a 64 bit computer? I have version 3.6 python.
 

Read other answers
RELEVANCY SCORE 39.6
Q: Python?

Is anyone here versed in Python? My son is into programming and already is very knowledgeable in several programming languages but is just learning, on his own, Python. I'm sure he would like to become acquainted with anyone who is already fairly fluent in this new language. TIA.
 

Read other answers
RELEVANCY SCORE 39.6

And is it something I need or just another security and privacy risk HP put on my computer>
 

A:What is Python>

Read other 8 answers
RELEVANCY SCORE 39.6

Does anybody know what that is? (Python 22)

It is a sizable prog. and is in the start up line.
when I do a search for it , I can not find anything ??
I tried google for info , no luck there.
accept one site that said "send me $$ and I will tell you"

Well I have a few words for them.
thanks to anybody who can help.
 

A:Python 22 ??

See if this helps: http://www.python.org/doc/faq/installed/
 

Read other 2 answers
RELEVANCY SCORE 39.6

What are the uses of Python in Software Development?
 

Read other answers
RELEVANCY SCORE 39.2

I have a file which is created using C++ code. I'm parsing that file with python and I need to know the size of a struct that is the header of the file. Is there any way I can import the C or C++ code into my python code and call the C function sizeof()? Or is there a better way to do this?

More specifically, line 336 of this file
http://lxr.mozilla.org/mozilla1.8/source/netwerk/cache/src/nsDiskCacheMap.h
is the structure that I need the size of, but I honestly can't even fathom a way to get it from python. I can just assume little_endian is true (I think most platforms that run netscape & firefox are little endian??), which is not ideal, but I still wouldn't know how big that structure is...what's the sizeof() a function anyway--the same as the data type of the function plus all the sizes of the variables in it?

If anyone could help me out with this, I would really appreciate it. Thanks!
 

A:Python getting sizeof from C

Read other 6 answers
RELEVANCY SCORE 39.2

Hi,

I have two versions of python installed:

c:\Python26_x64
c:\Python27_x64

The c:\Python27_x64 is in %path% and there's nothing in the 'set' command that mentions 26. When I run python from cmd.exe the 27 version is executed as expected. On the other hand, when I run python from win+R the 26 version is run. The path (when directed into a file) in both cmd.exe and win+R is the same.
Any ideas?

Thanks,
Zohar

A:Different python is executed in cmd and win+R

Perhaps the 26 has an entry in the Prefetch folder? Try opening an Admin command prompt. Change directory (CD) to C:\Windows\Pefetch assuming Windows is installed on drive C:, then do "del *.*" and hit Enter. ( Make sure you are in C:\Windows\Prefetch before you delete all files!!! )

Try the Win+r and see if it does the same thing anyway. If it does, my theory is wrong.

Read other 3 answers
RELEVANCY SCORE 39.2

Python multiprocessing.

Oskar Andreasson (yes that Oskar Andreasson) explores using the language Python in a multiprocessing context - good stuff to fill your brain with if you are interested in multiprocessing!

-- Tom
 

Read other answers
RELEVANCY SCORE 39.2

Hi, i just started my csc 102 course in college and it was supposed to be C++. Instead of that, we're going to be learning python which was never done before according to the professor. His explanation was that we could learn more of python in one introductory semester course than c++. I agree with his reasoning, but i'm still somewhat saddened since i always saw c++ as a kind of king in programming and was hoping for the course to give me a better push into the language that i could achieve by learning myself, since every time i start to learn alone, after a while i start playing games and don't come back to it. I was wondering if python could be used to make high quality game engines that don't lack in performance to c++ game engines from which( as far as i know) all the great engines come from such as the Unreal Tournament Engine and the Crysis Engine.
 

Read other answers
RELEVANCY SCORE 39.2

I am trying to use some Python functions from C, using Dev C++ compiler. However, everything I try does not work, as it gives me a compiler and linker error, every time I try to compile the C code. Any input or help would be much appreciated. Thanks -Fabez-
 

A:C \ Python Interface

Read other 7 answers
RELEVANCY SCORE 39.2

I am having trouble creating a program that allow customers to enter the insurance company name, annual premium and monthly (6% more) for insurance companies. The insurance company name, annual premium, monthly premium and how much more to pay if paid on monthly basis should be shown.
 

A:Programming Python

You have not provided us any code to help you with. Which part are you having problems with?
 

Read other 2 answers
RELEVANCY SCORE 39.2

Hello everybody,
I'm sure everybody here knows some Scripting language and have working knowledge. I need help with getting started to learn but i want to start with some project wide enough to help learn the language and understand the concpets of python. There are some other scripting languages i know about, for eg: perl, php but i'm interested in this one..dont know why???
Need help of someone who is actively working on it or has worked in the past and can throw some pointers here to get started.
I dont like the idea of reading pages and pages and then impementing something. The other way round is a much faster and better way.

Please post your replies soon... Thanks a lot!!
 

Read other answers
RELEVANCY SCORE 39.2

I feel a bit trapped, because there doesn't seem to be a good version of Python for windows. I know there are some, but they aren't open source, and I kind of need that for the project I'm doing (not a project in Python, but rather a project for school.) So, are there any other simple programming languages that are free and open-source? And when I say simple, I mean kindergarten simple.
 

A:Python For Windows

Read other 7 answers
RELEVANCY SCORE 39.2

I'm having a problem installing python and blender. I install python for windows through the MSI file provided by Python.org (2.6.1 and 3.0). I then install Blender (2.48). When i fire up blender it gives me this mesege.


Code:

Checking for installed Python... No installed Python Found.
Only built-in modules are available. Some scripts may not run.
So i go and check my environment vars and ofcorse the PYTHONPATH var is missing. so i set it up


Code:

PYTHONPATH
C:\Python3;C:\Python3\DLLs;C:\Python3\Lib;C:\Python3\Lib\lib-tk;
Still nothing

===
I tryed again with python 2.6
Uninstalled everything, re-installed everything, setup the environment vars again.


Code:

PYTHONPATH
C:\Python26;C:\Python26\DLLs;C:\Python26\Lib;C:\Python26\Lib\lib-tk;
and now i get


Code:

Checking for installed Python... C:\Python26\lib\site.py:150: Warning: 'with' will become a reserved keyword in Python 2.6
No installed Python found.
Only built-in modules are available. Some scripts may not run.

A:Python and Blender

Hi,

I think you did everything right. For me a practical solution was to install Python 2.5.2 besides the 2.6 installation. After you've done this, all you have to do is change the PATHs from PYTHON26 to PYTHON25 (also LIB etc.).
This worked for me in Vista 64x, but I think this is not a specific Windows 7 problem. I guess Blender2.48 just doesn't like newer versions of PYTHON. Let us see which version Blender 2.49 will use.

Greetings from Holland,
Rich.

Read other 2 answers
RELEVANCY SCORE 39.2

Does anybody know a good Python starting book. I know a little C, but a beginners book would be good.

Thanks
 

A:Python Book

Read other 8 answers
RELEVANCY SCORE 39.2

Hello! I am learning Python, and I think I know enough of it to make a simple computer game. I do not want to do something too elaborate, but something along the lines of Pac Man, or any of those old 'retro' games with the 1981 arcade game graphics (The kind that remind you of 'River Raid', 'Pong', and 'Space Invaders'. Anyway, what kind of tools do I need to do this? Help is appreciated!

--maxim
 

Read other answers
RELEVANCY SCORE 39.2

I need to know what some of Pythons server/net commands are, since I can't find any good lists of commands anywhere.
So if anyone knows any, or if someone would like to write me a simple server engine, I would be very happy.
 

Read other answers
RELEVANCY SCORE 39.2

I ran a Secunia check to see if any of my applications needed updating, and it said that Python did. Since I'd never heard of it, I've been trying to research it. I know it was not deliberately installed, but don't know how it may have gotten installed (whether part of new HP system, or a particular application), and whether I should keep it. It doesn't show up in the list of Installed Programs.

Does anyone have more insight on this software?

A:How can I find out why I have Python?

Itunes, Realtek software, games?

Read other 3 answers
RELEVANCY SCORE 39.2

I have just started learning Python and like it a lot, but all that seems to exist to use it is the interpreter. I'd like to be able to compile things written with it into stand-alone Windows executables... does anyone know of any way to do this?
 

A:Python Compiler (?)

http://www.python.org/doc/current/lib/compiler.html
 

Read other 3 answers
RELEVANCY SCORE 39.2

Can someone explain to me how i can create clickable links within my wxpython program? i cant seem to find anythin to help me.

Thanx
 

Read other answers
RELEVANCY SCORE 39.2

Hi all,

I've got Python v.2.4 that supposedly has an editor and I'm unable to find it.
Can anyone tell me how I would open the editor.

Thanks.
 

A:Python editor

Read other 9 answers
RELEVANCY SCORE 39.2

I need to get Python for one of my classes and I was about to download it, when I came across Python source... What is it? I realize Python is open source, but can't figure out what is a Python source. I have Win7 64-bit and the warning notice next to the 64-bit download said that "it doesn't include source"...
I also need IDLE, so would that be a problem? Or should I just download the first, normal Windows installer?
Thanks
 

A:What is Python source?

Hi wicked.ludicrous,

Since Python is a programming language, Python source is text containing Python statements in the programming language Python. See: Python (programming language).

For example: to execute a python source, one might issue the following command (in a Terminal command line window where $ is the command prompt) assuming that a Python interpreter executable is available on your computer:
$ sudo python check-my-hardware.py

The file check-my-hardware.py is the file containing python source statements interpreted by the python interpreter executable in root mode (via use the sudo) on a Linux platform. The python source code in check-my-hardware.py determines compatibility of a computer's BIOS with PAE and NX bit available memory.

-- Tom
 

Read other 2 answers
RELEVANCY SCORE 39.2

I downloaded Python for the first time today and went to start compiling a code but when I did, it said there was a Syntax error. it highlighted the "2" in "3.2" at the top of IDLE. I tried deleting the 2 but it did the same thing and highlighted the "." after the "3" instead. Same thing when I tried Python 2.7. Both versions were the Windows x86 MSI Installer. Any ideas?
 

A:Can't get Python to work

Read other 10 answers
RELEVANCY SCORE 39.2

I have to use python for my uni course. Last week it stopped working, gave an error code but doesn't give it now. I have tried to unistall, repair and reinstall it again. A progress bar appears gets to about 25% and then freezes and slows my whole computer down. I also tried to delete the files from the C drive as well this also didn't work.

Any help greatly appreciated cheers.
 

Read other answers
RELEVANCY SCORE 39.2

I can't install any version of Python onto my laptop; I am getting the error message: "This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package." My laptop is 64-bit, but any version of Python would be fine - I.e. Python 3.3.4 or Python 2.7.6 - I just need it installed!!! Thank you!
 

A:I can't install Python

emmy11 said:





I can't install any version of Python onto my laptop; I am getting the error message: "This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package." My laptop is 64-bit, but any version of Python would be fine - I.e. Python 3.3.4 or Python 2.7.6 - I just need it installed!!! Thank you! Click to expand...

64 bit but what OS?
 

Read other 2 answers
RELEVANCY SCORE 39.2

FAILED INIT PYTHON...

i know it probably sound familiar but i cant get the addon--beyond the sword---for civ 4 to work....

the original game works fine with the crack and everything...but even after adding the crack to the installed beyondthesword directory it reads failed python...anyhting i can do to correct this?
 

Read other answers
RELEVANCY SCORE 39.2

After two years break I tried to restart a Python/Excel program that ran ok then. The first lines of my Python code reads

import win32com.client, sys, os
excel = win32com.client.Dispatch.client.Dispatch('Excel.Application')
excel.Visible = 1

When I try to run it I get the error

ImportError: No module named win32com.client

How can I find the modul again?
I am using Python 2.5.1.

// Willy

A:Python/Excel

Hello and welcome to the forum.

I am very sorry for the delay, we have been very busy lately.

Please try this:

Python for Windows extensions | Download Python for Windows extensions software for free at SourceForge.net

Read other 1 answers
RELEVANCY SCORE 39.2

I want to buy a book on programming, but I cant decide between learning Ruby or Python. Which one is better to learn first? Which one is easier for someone who does not program, but has a good concept of how it works?

Please Visual Basic & Java people, try to stay with the topic
 

A:Ruby or Python which one is better?

Read other 8 answers
RELEVANCY SCORE 39.2

I'm developing some scripts on Win 10. But suddenly all the script failed due to it cannot invoke CMD on Win10.
Here is one example,
"
import os
os.system("cd .")
"
It is a very simple code that python to call CMD to execute "cd .".
But it always return "-1073740791".
And all my other projects such as Jenkins failed because of try to invoke CMD.
Could anyone help me on this?

Read other answers
RELEVANCY SCORE 39.2

I am not able to install python on my windows 8.1 64x bit. Check the image for the system error message shown please help fast.... Thanks in advance....
 

Read other answers
RELEVANCY SCORE 39.2

Hi
i was wondering if any one can tell me what the difference is between c++ and python and wich one you would recogmend to a complete newbie to programming also how does one compile a python source code i tried to look at pythons site but cant make sense of the code i am utterly confused
 

A:nick the python

Read other 12 answers
RELEVANCY SCORE 38.8

The video is pretty long so bring out the popcorn and enjoy!

Matteo Cafasso a software engineer working in F-Secure Labs is here presenting a Sandboxing technology named Sandboxed Execution Environment (SEE).

SEE is available here : F-Secure/see GitHub

This development was obvious as we seen examples of Python Malware.
 

Read other answers
RELEVANCY SCORE 38.8

I want a kind of example in which there is a python class created. And then a C++ code creates object of the python class and thus can use the python class' functions.

If example is not possible then u can help me with any tip or any other link or resource.

I want the solution preferrably using C/API in python.
 

Read other answers
RELEVANCY SCORE 38.8

I am an experienced user in Python, but even after trawling though all of my resources I could not find a way to stop a sound from plaing while it is playing (in the winsound module) please could someone give a suggestion???
 

Read other answers
RELEVANCY SCORE 38.8

Alright in a file I have:

media-sound/beep-media-player 124
media-video/mplayer 678
www-client/mozilla-firefox 11278

Which when read creates a list that reads as such

['media-sound/beep-media-player 124\n', 'media-video/mplayer 678\n', 'www-client/mozilla-firefox 11236\n']

I'm wondering how I can match a since entry in the list so that I can replace it.
 

A:Python file modification

I think I'l be able to do it with a index search based on a previously known value

something like:
section = clear.index('%s' % (data))

I should then be able to pop that record out and then add it back in at the end.
 

Read other 1 answers
RELEVANCY SCORE 38.8

Hiya

The Python development team has discovered a flaw in the
SimpleXMLRPCServer library module which can give remote attackers
access to internals of the registered object or its module or possibly
other modules. The flaw only affects Python XML-RPC servers that use
the register_instance() method to register an object without a
_dispatch() method. Servers using only register_function() are not
affected.

On vulnerable XML-RPC servers, a remote attacker may be able to view
or modify globals of the module(s) containing the registered
instance's class(es), potentially leading to data loss or arbitrary
code execution. If the registered object is a module, the danger is
particularly serious. For example, if the registered module imports
the os module, an attacker could invoke the os.system() function.

Versions: 2.2 all versions, 2.3 prior to 2.3.5, 2.4
http://www.python.org/security/PSF-2005-001/
 

Read other answers
RELEVANCY SCORE 38.8

def vat():
z=input("enter the price of the product")
u=input("enter the vat percentage")
d=u/100*z
t=z+d
print ("the total price of the product is"+str(t))
In the above program in line 4, it supposes u/100 to 0 instead of 0.(something).What can i do to get rid of this problem.. please help I want answer to be in decimal
 

Read other answers
RELEVANCY SCORE 38.8

Ok i am starting to learn python. I have come to make these questions.

a. Ok, give me some example programs written in python to show off the language.

b. I want to see a good program natively for python, and one that is a windows executable.

c. How do i go about compiling my python programs to an executable or windows executable.
 

Read other answers