Python Forum
Adding a node into an xml tree
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding a node into an xml tree
#8
Hi snippsat

You are right. As I am lazy, I defined an alias
remi@remi-Vostro-3550:~$ alias python
alias python='python3.8'
remi@remi-Vostro-3550:~$ 
I don't remember how I installed Python and BeautifulSoup. I made a new BeautifulSoup install following your instruction
remi@remi-Vostro-3550:~$ pip -V
pip 20.1 from /home/remi/.local/lib/python3.8/site-packages/pip (python 3.8)
remi@remi-Vostro-3550:~$ python -m pip install beautifulsoup4
Defaulting to user installation because normal site-packages is not writeable
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.9.0-py3-none-any.whl (109 kB)
Collecting soupsieve>1.2
  Using cached soupsieve-2.0-py2.py3-none-any.whl (32 kB)
Installing collected packages: soupsieve, beautifulsoup4
Successfully installed beautifulsoup4-4.9.0 soupsieve-2.0
remi@remi-Vostro-3550:~$ pip install --user beautifulsoup4
Requirement already satisfied: beautifulsoup4 in ./.local/lib/python3.8/site-packages (4.9.0)
Requirement already satisfied: soupsieve>1.2 in ./.local/lib/python3.8/site-packages (from beautifulsoup4) (2.0)
remi@remi-Vostro-3550:~$
I've removed bs4 and beautifulsoup4-4.6.0.egg-info from /usr/lib/python3/dist-packages as they now have been installed in /home/remi/.local/lib/python3.8/site-packages.

So, I still have a question regarding my own scripts.

Do I have to store them in /home/remi/.local/lib/python3.8/site-packages or could I let them in a specific directory, and in that case, how can I have this directory be included in sys.path at Python's launch when typing «Python» on the command line ? (I know it is included in sys.path[0] when I type «Python <my_script> on the command line)

Arbiel
using Ubuntu 18.04.4 LTS, Python 3.8
having substituted «https://www.lilo.org/fr/» to google, «https://protonmail.com/» to any other unsafe mail service and bépo to azerty (french keyboard layouts)
Reply


Messages In This Thread
Adding a node into an xml tree - by arbiel - May-02-2020, 08:04 PM
RE: Adding a node into an xml tree - by snippsat - May-02-2020, 08:24 PM
RE: Adding a node into an xml tree - by arbiel - May-03-2020, 02:24 PM
RE: Adding a node into an xml tree - by wavic - May-04-2020, 04:44 PM
RE: Adding a node into an xml tree - by arbiel - May-04-2020, 08:08 PM
RE: Adding a node into an xml tree - by wavic - May-05-2020, 08:51 AM
RE: Adding a node into an xml tree - by snippsat - May-05-2020, 10:59 AM
RE: Adding a node into an xml tree - by arbiel - May-05-2020, 09:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How we prune Alphabeta Tree Node Using BST concept Anldra12 4 2,454 May-18-2021, 09:17 AM
Last Post: Anldra12
  Adding markers to Folium map only adding last element. tantony 0 2,140 Oct-16-2019, 03:28 PM
Last Post: tantony

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020