[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Directory Tree
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 11
Thread images: 2
File: tree.jpg (1 MB, 1920x1200) Image search: [Google]
tree.jpg
1 MB, 1920x1200
Hello,

I have fedora 23 which comes preinstalled with Python 2.7. I have installed Python 3.5 in my /home/user/Documents/ directory which required me to make an alias for the python command.

Whenever I use pip to install python packages, they are automatically installed into the Python 2.7's subdirectories.

How can I change this? Did I goof when I installed Python 3.X into my home/user/Documents directory?


send help
>>
>>54673416

>Did I goof when I installed Python 3.X into my home/user/Documents directory?

Yes. Why not just install it normally?
>>
>>54673475
How? When I type: sudo dnf install python3

I get: Package python3-3.4.3-6.fc23.x86_64 is already installed, skipping.
There is nothing to do.
>>
>>54673567

You have python3.4 already installed. If you need 3.5, you can install it from copr.
>>
File: foam.jpg (209 KB, 867x922) Image search: [Google]
foam.jpg
209 KB, 867x922
>>54673416
I just rm -r -f my Python3.5 directory from my Documents directory.

Yet when I type python3, I can still use it. So I'm more confused now, but it's not important.

How can I get pip to install modules to python3.5 and not 2.7?
>>
>>54673628
>>54674088
Sorry I'm an idiot.

How can I get pip to install modules to 3.4 I should say.
>>
>>54674088
Use pip3
>>
>>54674103
python3 -m pip install "module name" should work
>>
>>54674399

Thank you, doubles.

When I tried that I got a message stating that pip didn't exist.
>>
>>54675755
I can use pip to install modules to 2.7. When I am in the python2.7 I can import modules.

I cannot figure out how to install modules for 3.x, and therefore cannot use any that I have attempted to install.
>>
>>54674327
This
Thread replies: 11
Thread images: 2

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.